reiserfsprogs: use com_err in reiserfs_open

We dump failure messages to the terminal regardless of whether the caller
wants them or not.  This can be annoying when used as part of a general
tool that tests to see which file system is on a device by calling
its open routine.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
This commit is contained in:
Jeff Mahoney committed 2016-06-06 14:05:36 -04:00
1 parent 59dc067e79
commit 3c0f2812b0
12 files changed
+100 -52

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
# reiserfs_err.et - Error codes for reiserfscore
#
# Copyright (C) 2016 SUSE
#
error_table reiserfs
ec REISERFS_ET_BREAD_FAILED,
"bread failed to read block"
ec REISERFS_ET_BAD_MAGIC,
"the reiserfs superblock cannot be found"
ec REISERFS_ET_BAD_SUPER,
"a superblock with wrong parameters was found in the block"
ec REISERFS_ET_SMALL_PARTITION,
"Your partition is not big enough to contain the filesystem"
ec REISERFS_ET_NOT_ENOUGH_BLOCKS,
"not enough blocks on device"
ec REISERFS_ET_TOO_SMALL,
"cannot create a file system that small"
ec REISERFS_ET_GETBLK_FAILED,
"getblk failed"
end