Whamcloud - gitweb
ChangeLog, debugfs.c:
authorTheodore Ts'o <tytso@mit.edu>
Sat, 1 Aug 1998 01:03:39 +0000 (01:03 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 1 Aug 1998 01:03:39 +0000 (01:03 +0000)
  debugfs.c (do_stat, do_clri): Fix bug where debugfs wasn't displaying
   the error message if ext2fs_read_inode() failed.
   (do_rm): Fix similar problem for call to ext2fs_namei().

debugfs/ChangeLog
debugfs/debugfs.c

index 20db33d..70aa422 100644 (file)
@@ -1,3 +1,9 @@
+1998-07-31  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+       * debugfs.c (do_stat, do_clri): Fix bug where debugfs wasn't
+               displaying the error message if ext2fs_read_inode() failed.
+               (do_rm): Fix similar problem for call to ext2fs_namei().
+       
 1998-07-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
        * Release of E2fsprogs 1.12
index 2cbad64..ab10934 100644 (file)
@@ -382,7 +382,7 @@ void do_stat(int argc, char *argv[])
        retval = ext2fs_read_inode(current_fs, inode, &inode_buf);
        if (retval) 
          {
-           com_err(argv[0], 0, "Reading inode");
+           com_err(argv[0], retval, "while trying to read inode %d", inode);
            return;
          }
 
@@ -433,7 +433,8 @@ void do_clri(int argc, char *argv[])
 
        retval = ext2fs_read_inode(current_fs, inode, &inode_buf);
        if (retval) {
-               com_err(argv[0], 0, "while trying to read inode %d", inode);
+               com_err(argv[0], retval, "while trying to read inode %d", 
+                       inode);
                return;
        }
        memset(&inode_buf, 0, sizeof(inode_buf));
@@ -1254,7 +1255,7 @@ void do_rm(int argc, char *argv[])
 
        retval = ext2fs_namei(current_fs, root, cwd, argv[1], &inode_num);
        if (retval) {
-               com_err(argv[0], 0, "Cannot find file");
+               com_err(argv[0], retval, "while trying to resolve filename");
                return;
        }