[PATCH] make new_inode call a little bit clearer.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Zheng,
on e2fsprog pu branch,
I know it not worth to commit this alone, maybe you combine with you
future commit later.

thank you!

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");



Best,
Jon
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux