diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-10-22 19:36:10 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-10-22 19:36:10 +0000 |
commit | 0b72fdc81b2ae5b5402b3332dce80e6b402091b5 (patch) | |
tree | 384f4ed3d3aa9b111f56d894492174a8cf54fe37 /lib/libufs | |
parent | 7eb8ba29f0bb90c5986073e4a197d6216773e086 (diff) | |
download | FreeBSD-src-0b72fdc81b2ae5b5402b3332dce80e6b402091b5.zip FreeBSD-src-0b72fdc81b2ae5b5402b3332dce80e6b402091b5.tar.gz |
Use an error message closer to old dumpfs(8) in the case of truncated/no
superblock.
Submitted by: kkenn
Can't use it verbatim, at least I hate to, as the ", skipped" bit doesn't
make much sense in a library, to me.
Diffstat (limited to 'lib/libufs')
-rw-r--r-- | lib/libufs/sblock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libufs/sblock.c b/lib/libufs/sblock.c index 5262412..0cd8796 100644 --- a/lib/libufs/sblock.c +++ b/lib/libufs/sblock.c @@ -60,7 +60,7 @@ sbread(struct uufsd *disk) for (sb = 0; (superblock = superblocks[sb]) != -1; sb++) { if (bread(disk, superblock, disk->d_sb, SBLOCKSIZE) == -1) { - disk->d_error = "truncated superblock"; + disk->d_error = "non-existent or truncated superblock"; DEBUG(NULL); return -1; } |