[OpenAFS] how to tell if a dir resides in AFS volume?
Tue, 17 Sep 2013 09:41:12 -0400
On Mon, Sep 16, 2013 at 10:56:30PM -0400, Michael Meffie wrote:
> On Tue, 17 Sep 2013 14:27:57 +0200
> Markus Koeberl <email@example.com> wrote:
> > On Tuesday 17 September 2013 13:50:07 chas williams - CONTRACTOR wrote:
> > > I suppose you could try an afs ioctl of some sort against the file, in
> > > a script you might call 'fs listacl'.
> > fs whereis returns 0 for afs paths, also for /afs if you use DYNROOT which is
> > not the case for fs listacl on my system.
> The `df' command will list filesystem types. For example, on linux you
> can use the -T option.
> $ cd /afs/<somepath-in-afs>/
> $ df -T foo # some file or dir in afs
> Filesystem Type 1K-blocks Used Available Use% Mounted on
> AFS afs 9000000 0 9000000 0% /afs
If you have the stat(1) command from GNU coreutils, you can also do:
$ stat -c %T -f /afs/tproa.net/happiness
Which is likely calling the same thing df is above.
Thomas L. Kula | firstname.lastname@example.org | http://kula.tproa.net/