freebsd-dev/lib/libufs
Pawel Jakub Dawidek fa1abc314f The ufs_disk_fillout(3) can take special device name (with or without /dev/
prefix) as an argument and mount point path. At the end it has to find
device name file system is stored on, which means when mount point path is
given, it tries to look into /etc/fstab and find special device
corresponding to the given mount point. This is not perfect, because it
doesn't handle the case when file system is mounted by hand and mount point
is given as an argument.

I found this problem while trying to use snapinfo(8), which passes mount
points to the ufs_disk_fillout(3) function, but I had file system mounted
manually, so snapinfo(8) was exiting with the error below:

	ufs_disk_fillout: No such file or directory

I modified libufs(3) to handle those arguments (the order is important):

1. special device with /dev/ prefix
2. special device without /dev/ prefix
3. mount point listed in /etc/fstab, directory exists
4. mount point listed in /etc/fstab, directory doesn't exist
5. mount point of a file system mounted by hand
2007-03-16 03:13:28 +00:00
..
block.c Add XXX'ed temporary bounce-buffering. 2003-10-07 07:12:22 +00:00
bread.3 Markup fixes. 2004-07-05 06:53:34 +00:00
cgread.3 Implement cgwrite1(3) function which stored a given cylinder group on disk. 2006-10-31 21:21:48 +00:00
cgroup.c Implement cgwrite1(3) function which stored a given cylinder group on disk. 2006-10-31 21:21:48 +00:00
inode.c Correct an apparent typo. 2003-06-19 22:12:54 +00:00
libufs.3 Implement cgwrite1(3) function which stored a given cylinder group on disk. 2006-10-31 21:21:48 +00:00
libufs.h Implement cgwrite1(3) function which stored a given cylinder group on disk. 2006-10-31 21:21:48 +00:00
Makefile Implement cgwrite1(3) function which stored a given cylinder group on disk. 2006-10-31 21:21:48 +00:00
sblock.c Reduce diffs with code in Perforce: 2003-06-09 09:32:29 +00:00
sbread.3 Markup fixes. 2004-07-05 06:53:34 +00:00
type.c The ufs_disk_fillout(3) can take special device name (with or without /dev/ 2007-03-16 03:13:28 +00:00
ufs_disk_close.3 Fixed xrefs. 2005-01-21 10:35:40 +00:00