Whamcloud - gitweb
libext2fs: handle inline_data in block iterator by returning an error code
authorTheodore Ts'o <tytso@mit.edu>
Sun, 13 Oct 2013 21:42:25 +0000 (17:42 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 14 Oct 2013 01:43:41 +0000 (21:43 -0400)
commita7f4c6353f75d83506ed3b4c47461362ae1f7521
tree81750e5f2b1578e9df109596a80198b8892cef83
parent00716339da0a813d92754b94408c80b8fc90f84f
libext2fs: handle inline_data in block iterator by returning an error code

An inode with inline data has no data blocks, so we can not iterate
over such an inode.  Return an error code which indicates this fact;
callers can use this to determine whether or not the inode has inline
data, and then call some routine to iterate over the directory intries
in the line data or read the inline data, as appropriate.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/block.c
lib/ext2fs/ext2_err.et.in