git: sbin/hammer: Make info command properly handle non HAMMER path
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Sun Apr 9 11:51:15 PDT 2017
commit babddd74dae2574824381c0bef9b80ed35dbf9df
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date: Sun Apr 9 19:46:20 2017 +0300
sbin/hammer: Make info command properly handle non HAMMER path
This shouldn't be needed if i/f of libhammer were carefully designed,
but this seems to be the only guaranteed way to detect non HAMMER path,
and print a proper error message that makes sense for UFS, etc.
-- before this commit
# hammer info /boot
hammer: libhammer_get_fsinfo <--- ???
-- with this commit
# hammer info /boot
hammer: /boot is probably not a HAMMER filesystem: Inappropriate ioctl for device
Summary of changes:
sbin/hammer/cmd_info.c | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/babddd74dae2574824381c0bef9b80ed35dbf9df
--
DragonFly BSD source repository
More information about the Commits
mailing list