1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00
freebsd/lib
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
..
bind Update generated files for BIND 9.3.4 2007-01-29 18:33:18 +00:00
csu
libalias
libarchive When ARCHIVE_EXTRACT_UNLINK is requested: 2007-03-13 06:04:24 +00:00
libatm
libautofs
libbegemot
libbluetooth
libbsm
libbsnmp
libbz2
libc - Sysctl's move to seperate file 2007-03-15 11:27:14 +00:00
libc_r Remove 3rd clause, renumber, ok per email 2007-01-12 07:26:21 +00:00
libcalendar
libcam
libcom_err
libcompat Remove California Regent's clause 3, per letter 2007-01-09 01:02:06 +00:00
libcrypt
libdevinfo
libdevstat
libdisk
libedit Merge the following changes from NetBSD: 2007-03-11 21:47:40 +00:00
libelf Add GELF_* accessor macros. 2007-03-08 04:01:30 +00:00
libexpat
libfetch
libftpio
libgeom
libgpib
libgssapi
libipsec
libipx Remove California Regent's clause 3, per letter 2007-01-09 01:02:06 +00:00
libkiconv
libkse Oops, fix a typo in the last commit :-/ 2007-03-05 19:00:49 +00:00
libkvm - Move 'struct swdevt' back into swap_pager.h and expose it to userland. 2007-02-07 17:43:11 +00:00
libmagic
libmd
libmemstat Fix a comment in memstat.h: errors are associated with memory type lists, 2007-03-15 10:44:18 +00:00
libmilter
libmp
libncp Mark data structures used on the wire with IPX SAP as __packed so that 2007-02-26 12:07:08 +00:00
libnetgraph
libngatm
libopie
libpam Send not only Access Request, but also Access Challenge with defined 2007-01-20 08:52:04 +00:00
libpcap
libpmc
libpthread Oops, fix a typo in the last commit :-/ 2007-03-05 19:00:49 +00:00
libradius
librpcsvc
librt
libsbuf
libsdp
libsm
libsmb
libsmdb
libsmutil
libstand Remove California Regent's clause 3, per letter 2007-01-09 01:02:06 +00:00
libtacplus
libtelnet
libthr Remove 3rd clause, renumber, ok per email 2007-01-12 07:26:21 +00:00
libthread_db
libufs The ufs_disk_fillout(3) can take special device name (with or without /dev/ 2007-03-16 03:13:28 +00:00
libugidfw
libusbhid
libutil Remove California Regent's clause 3, per letter 2007-01-09 01:02:06 +00:00
libvgl
libwrap Remove a (harmless) stray backslash. 2007-02-27 16:13:19 +00:00
liby Remove California Regent's clause 3, per letter 2007-01-09 01:02:06 +00:00
libypclnt Hook ypclnt.3 up to the build. 2007-02-15 02:43:14 +00:00
libz
msun Remove California Regent's clause 3, per letter 2007-01-09 01:02:06 +00:00
ncurses Enable ncurses wide character support 2007-03-09 12:11:58 +00:00
Makefile Switch to new ncurses build glue 2007-01-20 07:48:10 +00:00
Makefile.inc