summaryrefslogtreecommitdiffstats
path: root/lib/libufs
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-10-22 19:36:10 +0000
committerjmallett <jmallett@FreeBSD.org>2002-10-22 19:36:10 +0000
commit0b72fdc81b2ae5b5402b3332dce80e6b402091b5 (patch)
tree384f4ed3d3aa9b111f56d894492174a8cf54fe37 /lib/libufs
parent7eb8ba29f0bb90c5986073e4a197d6216773e086 (diff)
downloadFreeBSD-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.c2
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;
}
OpenPOWER on IntegriCloud