[OpenAFS] check in c (linux) whether a directory entry is a mount point for an AFS volume
David Howells
dhowells@redhat.com
Fri, 03 Aug 2018 15:43:59 +0100
With kAFS, you can do this:
[root@andromeda ~]# getfattr /kafs/.procyon.org.uk -d --match ".*"
getfattr: Removing leading '/' from absolute path names
# file: kafs/.procyon.org.uk
afs.cell="procyon.org.uk"
afs.fid="100005:1:1"
afs.volume="root.cell"
could that be added to OpenAFS also?
Also, you can use statx(2) to find out if the target path is an automount
point (struct statx::stx_attributes & STATX_ATTR_AUTOMOUNT) under kAFS.
OpenAFS could set the bit to indicate that this is a mountpoint, even though
it doesn't actually use the Linux kernel d_automount function.
David