File: [Development] / xfs-cmds / dmapi / VERSION (download)
Revision 1.10, Thu Mar 21 17:33:31 2002 UTC (15 years, 7 months ago) by roehrich
Branch: MAIN
Changes since 1.9: +1 -1
lines
dm_handle_to_path() will now work in most cases, and in the other cases
there's just a little more grunt work that has to be done in the library. If
the directory that contains some component of the path has never had a lookup
performed on it, then the kernel won't have that dir in its dcache. In that
case it'll create an anonymous dentry for the filesystem's root dir, and the
library detects that this happened.
If the library detects that an anonymous dentry was created, then it returns
an error indicating that it didn't find the path. Before I take this another
step, I'd like to know if this scenario happens in actual practice. I'm
betting the directory of interest has almost always been loaded into the
dcache by a user process before the HSM uses dm_handle_to_path(). We'll see.
It seems that ioctl(XFS_IOC_OPEN_BY_HANDLE) would have the same restriction,
though it looks like it's never used in a case where the path hasn't already
been accessed.
This mod also removes libdm's dependence on libhandle.
update revision
|