diff options
author | Brian S. Dean <bsd@FreeBSD.org> | 2001-01-25 17:29:07 +0000 |
---|---|---|
committer | Brian S. Dean <bsd@FreeBSD.org> | 2001-01-25 17:29:07 +0000 |
commit | a04ea1b860e7e1c344df49d7aeb6c8f45574a5ee (patch) | |
tree | 4a6131d76a51416f227ca9344d68685cbd8e7167 /sbin/mount/mount_ufs.c | |
parent | 13d0228de1ad1548d1ed3e496876f7a0aaaeaff4 (diff) | |
download | src-a04ea1b860e7e1c344df49d7aeb6c8f45574a5ee.tar.gz src-a04ea1b860e7e1c344df49d7aeb6c8f45574a5ee.zip |
Provide a better error message when the /dev entry is non-existant.
Due to the old message, I spent way more time debugging a diskless
root problem than it should have taken.
Notes
Notes:
svn path=/head/; revision=71645
Diffstat (limited to 'sbin/mount/mount_ufs.c')
-rw-r--r-- | sbin/mount/mount_ufs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sbin/mount/mount_ufs.c b/sbin/mount/mount_ufs.c index 18180b86d4a9..f999db882538 100644 --- a/sbin/mount/mount_ufs.c +++ b/sbin/mount/mount_ufs.c @@ -137,6 +137,9 @@ mount_ufs(argc, argv) warnx("%s on %s: incorrect super block", args.fspec, fs_name); break; + case ENOENT: + warn("%s", args.fspec); + break; default: warn(NULL); break; |