CVS log for xfs-cmds/dmapi/libdm/dmapi_lib.c

[BACK] Up to [Development] / xfs-cmds / dmapi / libdm

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.16 / (download) - annotate - [select for diffs], Wed Nov 9 05:02:30 2005 UTC (11 years, 11 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +14 -29 lines
Diff to previous 1.15 (colored)

Update copyright annotations and license boilerplates to correspond with SGI Legals preferences.
Merge of master-melb:xfs-cmds:24332a by kenmcd.

Revision 1.15 / (download) - annotate - [select for diffs], Tue May 25 19:25:04 2004 UTC (13 years, 4 months ago) by roehrich
Branch: MAIN
Changes since 1.14: +13 -9 lines
Diff to previous 1.14 (colored)

prep dmapi library for new dmapi on 2.4 kernel
find new dmapi device on 2.4 kernel

Revision 1.14 / (download) - annotate - [select for diffs], Tue Apr 20 17:05:56 2004 UTC (13 years, 6 months ago) by roehrich
Branch: MAIN
Changes since 1.13: +1 -1 lines
Diff to previous 1.13 (colored)

For 2.6 kernel, libdm should look for /dev/dmapi
For 2.6 kernel, libdm should look for /dev/dmapi

Revision 1.13 / (download) - annotate - [select for diffs], Fri Oct 17 15:16:56 2003 UTC (14 years ago) by roehrich
Branch: MAIN
Changes since 1.12: +9 -3 lines
Diff to previous 1.12 (colored)

Update libdm for new dmapi device used in 2.6.
Attempt to find the dmapi device in /dev, if that fails
then fall back to the old location in /proc.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jun 18 21:05:48 2002 UTC (15 years, 4 months ago) by roehrich
Branch: MAIN
CVS Tags: XFS-1_3_0pre1
Changes since 1.11: +5 -4 lines
Diff to previous 1.11 (colored)

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.
No Message Supplied

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jun 12 15:27:38 2002 UTC (15 years, 4 months ago) by roehrich
Branch: MAIN
Changes since 1.10: +320 -317 lines
Diff to previous 1.10 (colored)

No Message Supplied

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jun 4 23:07:56 2002 UTC (15 years, 4 months ago) by sandeen
Branch: MAIN
Changes since 1.9: +1 -1 lines
Diff to previous 1.9 (colored)

Update copyright dates (again)

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jun 4 22:53:09 2002 UTC (15 years, 4 months ago) by sandeen
Branch: MAIN
Changes since 1.8: +1 -1 lines
Diff to previous 1.8 (colored)

Undoes mod:     xfs-cmds:slinx:120772a
Undo xfs-cmds:slinx:120772a, inadvertently whacked a previous mod.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jun 4 17:58:21 2002 UTC (15 years, 4 months ago) by sandeen
Branch: MAIN
Changes since 1.7: +1 -1 lines
Diff to previous 1.7 (colored)

Update copyright dates

Revision 1.7 / (download) - annotate - [select for diffs], Thu Mar 21 17:33:31 2002 UTC (15 years, 7 months ago) by roehrich
Branch: MAIN
Changes since 1.6: +6 -0 lines
Diff to previous 1.6 (colored)

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.
Add DM_OPEN_BY_HANDLE case.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Dec 4 21:50:02 2001 UTC (15 years, 10 months ago) by roehrich
Branch: MAIN
Changes since 1.5: +1 -1 lines
Diff to previous 1.5 (colored)

find the dmapi device in its new location

Revision 1.5 / (download) - annotate - [select for diffs], Wed Sep 12 21:28:18 2001 UTC (16 years, 1 month ago) by roehrich
Branch: MAIN
Changes since 1.4: +17 -16 lines
Diff to previous 1.4 (colored)

No Message Supplied

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jul 18 18:00:16 2001 UTC (16 years, 3 months ago) by roehrich
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (colored)

change to use /proc instead of /dev

Revision 1.3 / (download) - annotate - [select for diffs], Mon Feb 19 00:38:02 2001 UTC (16 years, 8 months ago) by nathans
Branch: MAIN
CVS Tags: Release-1_0_0, Linux-2_4_5-merge
Changes since 1.2: +1 -0 lines
Diff to previous 1.2 (colored)

explicitly include stdarg.h for recent glibc 2.2.2 changes to stdio.h.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jan 17 01:36:55 2001 UTC (16 years, 9 months ago) by nathans
Branch: MAIN
Changes since 1.1: +5 -4 lines
Diff to previous 1.1 (colored)

initial version for reworked dmapi build environment.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jan 17 01:28:13 2001 UTC (16 years, 9 months ago) by nathans
Branch: MAIN

cmd/dmapi/libdm/linux/dmapi_lib.c 1.1 Renamed to cmd/dmapi/libdm/dmapi_lib.c

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>