2013-09-09 20:21:23

by jon ernst

[permalink] [raw]
Subject: [PATCH] make new_inode call a little bit clearer.

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