With the help of tuxillo and corecode (and others on irc) I enhanced the output a little more. If the mount fails it will now go through each device named on the command line to check which one caused the fail and will report this:

atom# ./mount_hammer /dev/dev1 /dev/ad11s2d /dev/dev2 /mnt
Not a valid HAMMER filesystem: /dev/dev1
Not a valid HAMMER filesystem: /dev/dev2
mount_hammer: mount /dev/dev1 /dev/dev2 on /mnt: Bad file descriptor


patch attached.

Cheers,

Jan

Attachment: patch2
Description: Binary data

Reply via email to