diff options
author | Theodore Ts'o <tytso@mit.edu> | 2008-02-02 21:26:54 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-02-10 08:04:09 -0500 |
commit | 357d1863d64ce807c2904e101fc87d3f6be2f3ca (patch) | |
tree | b680ed38780ba2080f115d042807cfe1abe961e4 /lib/ext2fs/dir_iterate.c | |
parent | ef80fdc8ad014c55e601018f4f6ec22065c37030 (diff) | |
download | android_external_e2fsprogs-357d1863d64ce807c2904e101fc87d3f6be2f3ca.tar.gz android_external_e2fsprogs-357d1863d64ce807c2904e101fc87d3f6be2f3ca.tar.bz2 android_external_e2fsprogs-357d1863d64ce807c2904e101fc87d3f6be2f3ca.zip |
libext2: Add BLOCK_FLAG_READ_ONLY flag to ext2fs_block_iterate2()
This flag allows the caller to promise that it will not try to modify
the block numbers returned by the iterator.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'lib/ext2fs/dir_iterate.c')
-rw-r--r-- | lib/ext2fs/dir_iterate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ext2fs/dir_iterate.c b/lib/ext2fs/dir_iterate.c index 003c0a3b..3e7b7b06 100644 --- a/lib/ext2fs/dir_iterate.c +++ b/lib/ext2fs/dir_iterate.c @@ -78,7 +78,7 @@ errcode_t ext2fs_dir_iterate2(ext2_filsys fs, ctx.func = func; ctx.priv_data = priv_data; ctx.errcode = 0; - retval = ext2fs_block_iterate2(fs, dir, 0, 0, + retval = ext2fs_block_iterate2(fs, dir, BLOCK_FLAG_READ_ONLY, 0, ext2fs_process_dir_block, &ctx); if (!block_buf) ext2fs_free_mem(&ctx.buf); |