From 71b97145a3c0cadd6394852a56998ea14bf59cb7 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sat, 25 Oct 1997 04:19:14 +0000 Subject: ext2_err.et.in: ext2_err.et.in: Added new error codes: EXT2_NO_MEMORY, EXT2_INVALID_ARGUMENT, EXT2_BLOCK_ALLOC_FAIL, EXT2_INODE_ALLOC_FAIL, EXT2_NOT_DIRECTORY Change various library files to use these errors instead of EINVAL, ENOENT, etc. --- lib/ext2fs/ext2_err.et.in | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'lib/ext2fs') diff --git a/lib/ext2fs/ext2_err.et.in b/lib/ext2fs/ext2_err.et.in index a51825c8..b8452ac1 100644 --- a/lib/ext2fs/ext2_err.et.in +++ b/lib/ext2fs/ext2_err.et.in @@ -50,8 +50,8 @@ ec EXT2_ET_MAGIC_DBLIST, ec EXT2_ET_MAGIC_ICOUNT, "Wrong magic number for icount structure" -ec EXT2_ET_MAGIC_RESERVED_5, - "Wrong magic number --- RESERVED_5" +ec EXT2_ET_MAGIC_PQ_IO_CHANNEL, + "Wrong magic number for Powerquest io_channel structure" ec EXT2_ET_MAGIC_RESERVED_6, "Wrong magic number --- RESERVED_6" @@ -227,4 +227,25 @@ ec EXT2_ET_RO_UNSUPP_FEATURE, ec EXT2_IO_LLSEEK_FAILED, "IO Channel failed to seek on read or write" +ec EXT2_NO_MEMORY, + "Memory allocation failed" + +ec EXT2_INVALID_ARGUMENT, + "Invalid argument passed to ext2 library" + +ec EXT2_BLOCK_ALLOC_FAIL, + "Could not allocate block in ext2 filesystem" + +ec EXT2_INODE_ALLOC_FAIL, + "Could not allocate inode in ext2 filesystem" + +ec EXT2_NO_DIRECTORY, + "Ext2 inode is not a directory" + +ec EXT2_TOO_MANY_REFS, + "Too many references in table" + +ec EXT2_FILE_NOT_FOUND, + "File not found by ext2_lookup" + end -- cgit v1.2.3