summaryrefslogtreecommitdiffstats
path: root/usr.sbin/snapinfo
Commit message (Collapse)AuthorAgeFilesLines
* Fix usr.bin/ and usr.sbin/ build with a 64-bit ino_t.mdf2012-09-271-1/+2
| | | | Original code by: Gleb Kurtsou
* Mark global functions and/or variables in snapinfo(8) static where possible.ed2011-11-061-11/+12
| | | | This allows compilers and static analyzers to do more thorough analysis.
* mdoc: consistently spell our email addresses <foo@FreeBSD.org>uqs2010-05-191-1/+1
| | | | Reviewed by: ru
* Mark ftwv as __unused. This compare function does not need it.ed2010-01-021-1/+1
|
* Imagine a situation where:pjd2007-03-161-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # ls -ld /mnt/{foo,bar} drwxr-xr-x 3 root wheel 512 Mar 16 06:56 /mnt/bar lrwxr-xr-x 1 root wheel 3 Mar 16 12:10 /mnt/foo -> bar # grep /mnt/foo /etc/fstab /dev/da1 /mnt/foo ufs rw 0 0 Which means, we give symbolic link as a mount point to mount(8), but mount(8) use realpath(3) before mounting the file systems, so we get: # mount | grep /dev/da1 /dev/da1 on /mnt/bar (ufs, local) Before the commit: # snapinfo /mnt/foo usage: snapinfo [-v] -a snapinfo [-v] mountpoint # snapinfo /mnt/bar /mnt/bar/snap This commit makes snapinfo(8) to first realpath(3) the given mount point and now we have: # snapinfo /mnt/foo /mnt/bar/snap # snapinfo /mnt/bar /mnt/bar/snap
* Pass special device to the ufs_disk_fillout() function, instead of mountpjd2007-03-161-12/+9
| | | | | | point path. This way we properly handle the case when file system listed in /etc/fstab was unmounted and another file system was mounted on the same mount point.
* Fix version number when the feature was added.hrs2006-03-231-1/+1
| | | | | Spotted by: ceri MFC after: 1 day
* snapinfo -- show snapshot location on UFS file systemsmarks2005-07-203-0/+251
Glanced over by: kan Review by: ru (snapshot.8) MFC: TBD
OpenPOWER on IntegriCloud