Whamcloud - gitweb
LU-2462 e2fsprogs Consider DIRENT_LUFID flag in link_proc(). 37/6237/3
authormsalve <msalve@ddn.com>
Fri, 17 May 2013 13:33:04 +0000 (19:03 +0530)
committermsalve <msalve@ddn.com>
Fri, 17 May 2013 13:33:04 +0000 (19:03 +0530)
commita2fbf0694ccdd1fcce6fe2b87db2464e070b272f
treec1bd8f21d46411ed697f5cde72693acaf0d23372
parentb09727ff799ae48c745c1bc17e8b82e6274c0d1a
LU-2462 e2fsprogs Consider DIRENT_LUFID flag in link_proc().

While adding the new file entry in directory block, link_proc()
calculates minimum record length of the existing directory entry
without considering the dirent data size and which leads to
corruption. Changed the code to use EXT2_DIR_REC_LEN() which will
return correct record length including dirent data size.

Signed-off-by: Manisha Salve <msalve@ddn.com>
Change-Id: Ic593c558c47a78183143ec8e99d8385ac94d06f7
lib/ext2fs/link.c