make new_inode call a little bit clearer.

Message ID
State New
Headers show

Commit Message

jon ernst Sept. 9, 2013, 8:21 p.m.
on e2fsprog pu branch,
I know it not worth to commit this alone, maybe you combine with you
future commit later.

thank you!

To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to
More majordomo info at


diff --git a/lib/ext2fs/inline_data.c b/lib/ext2fs/inline_data.c
index ea3736c..4bf19c1 100644
--- a/lib/ext2fs/inline_data.c
+++ b/lib/ext2fs/inline_data.c
@@ -933,7 +933,7 @@  static errcode_t test_file(ext2_filsys fs)
     char *buf, *cmpbuf;
     int inline_size;

-    retval = ext2fs_new_inode(fs, 2, 010755, 0, &newfile);
+    retval = ext2fs_new_inode(fs, EXT2_ROOT_INO, 010755, 0, &newfile);
     if (retval) {
         com_err("test_file", retval,
             "While creating a new file");