In dm_handle_to_path(), use getmntent() to walk through the filesystems,
looking for one with an fshandle that matches that of the object we're trying
to find. Open that path so we have a filedescriptor, and hence a valid
vfsmount structure, to give to dm_open_by_handle(). This simplifies a mess on
the kernel side.
Date: Tue Jun 18 14:05:48 PDT 2002
Workarea: clink-eth.americas.sgi.com:/data/clink/a67/roehrich/2.4.x-xfs
The following file(s) were checked into:
bonnie.engr.sgi.com:/isms/slinx/2.4.x-xfs
Modid: xfs-cmds:slinx:121884a
cmd/dmapi/VERSION - 1.13
- No Message Supplied
cmd/dmapi/doc/CHANGES - 1.12
- No Message Supplied
cmd/dmapi/build/rpm/dmapi.spec.in - 1.11
- No Message Supplied
cmd/dmapi/debian/control - 1.8
- No Message Supplied
cmd/dmapi/libdm/dm_handle2path.c - 1.11
- No Message Supplied
cmd/dmapi/libdm/dmapi_lib.c - 1.12
- No Message Supplied
cmd/dmapi/libdm/Makefile - 1.12
- No Message Supplied
|