e2fsprogs/e2fsck
Eric Sandeen e633b58ac7 libext2fs: clean up ext2fs_bg_flags_ interfaces
The ext2fs_bg_flag* functions were confusing.

Currently we have this:

void ext2fs_bg_flags_set(ext2_filsys fs, dgrp_t group, __u16 bg_flags);
void ext2fs_bg_flags_clear(ext2_filsys fs, dgrp_t group,__u16 bg_flags);

(_set (unused) sets exactly bg_flags; _clear clears all and ignores bg_flags)

and these, which can twiddle individual bits in bg_flags:

void ext2fs_bg_flag_set(ext2_filsys fs, dgrp_t group, __u16 bg_flag);
void ext2fs_bg_flag_clear(ext2_filsys fs, dgrp_t group, __u16 bg_flag);

A better interface, after the patch below, is just:

ext2fs_bg_flags_zap(fs, group) /* zeros bg_flags */
ext2fs_bg_flags_set(fs, group, flags) /* adds flags to bg_flags */
ext2fs_bg_flags_clear(fs, group, flags) /* clears flags in bg_flags */

and remove the original ext2fs_bg_flags_set / ext2fs_bg_flags_clear.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-10-25 21:41:32 -04:00
..
CHANGES Many files: 1997-04-26 13:21:57 +00:00
Makefile.in Don't use in-tree header files if using system uuid or blkid libraries 2009-10-04 14:45:08 -04:00
Makefile.pq Many files: 1997-11-14 05:23:04 +00:00
argv_parse.c remove useless if-before-free tests 2009-03-08 20:37:12 -04:00
argv_parse.h Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
badblocks.c Convert uses of super->s_*_blocks_count to ext2fs_*_blocks_count() 2009-09-07 20:46:34 -04:00
crc32.c Fix compiling under diet libc 2008-09-12 09:10:39 -04:00
crc32defs.h Only use __builtin_expect if __GNUC__ > 3 2008-07-13 16:06:56 -04:00
dict.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
dict.h Fixx gcc -Wall nitpicks. 2003-07-06 00:36:48 -04:00
dirinfo.c e2fsck: fix miscellaneous memory leaks 2009-06-15 03:54:06 -04:00
dx_dirinfo.c e2fsck: fix miscellaneous memory leaks 2009-06-15 03:54:06 -04:00
e2fsck.8.in Update man pages to include ext4 in the synposis, instead of just "ext2/ext3" 2009-05-30 12:34:28 -04:00
e2fsck.c e2fsck: When repacking directories, leave slack space for more efficiency 2008-12-25 17:59:36 -05:00
e2fsck.conf.5.in e2fsck: Accept superblock times to be fudged by up to 24 hours by default 2009-10-16 20:59:20 -04:00
e2fsck.h Add empty function for init_resource_track() and print_resource_track() 2009-05-28 09:55:10 -04:00
ea_refcount.c Fix compiling under diet libc 2008-09-12 09:10:39 -04:00
ehandler.c Convert to use io_channel_read_blk64() and io_channel_write_blk64() 2009-09-07 21:14:24 -04:00
emptydir.c e2fsck: Convert e2fsck to new bitmap interface 2009-08-22 22:29:02 -04:00
extend.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
flushb.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
gen_crc32table.c Fix gcc -Wall warnings in e2fsck 2008-06-07 11:04:10 -04:00
iscan.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
jfs_user.h e2fsck: Fix journal replay for block sizes greater than 8k 2009-01-02 18:14:42 -05:00
journal.c Convert to use io_channel_read_blk64() and io_channel_write_blk64() 2009-09-07 21:14:24 -04:00
message.c Merge branch 'maint' into next 2009-10-24 15:14:54 -04:00
mtrace.awk Many files: 1997-04-26 13:21:57 +00:00
mtrace.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
mtrace.h ChangeLog, super.c: 2001-01-12 21:05:57 +00:00
pass1.c Merge branch 'maint' into next 2009-10-24 15:14:54 -04:00
pass1b.c Use ext2fs_file_acl_block() instead of using .i_file_acl directly 2009-09-07 22:29:45 -04:00
pass2.c libext2fs: clean up ext2fs_bg_flags_ interfaces 2009-10-25 21:41:32 -04:00
pass3.c Convert to use io_channel_read_blk64() and io_channel_write_blk64() 2009-09-07 21:14:24 -04:00
pass4.c e2fsck: Convert e2fsck to new bitmap interface 2009-08-22 22:29:02 -04:00
pass5.c libext2fs: clean up ext2fs_bg_flags_ interfaces 2009-10-25 21:41:32 -04:00
problem.c e2fsck: Accept superblock times to be fudged by up to 24 hours by default 2009-10-16 20:59:20 -04:00
problem.h e2fsck: Add a global latch question for bad group descriptor checksums 2009-08-19 01:06:50 -04:00
problemP.h Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
prof_err.et Add the profile library code to e2fsck 2005-12-30 23:57:32 -05:00
profile.c remove useless if-before-free tests 2009-03-08 20:37:12 -04:00
profile.h Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
profile_helpers.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
profile_helpers.h Simplify profile core functionality 2006-01-02 22:04:41 -05:00
recovery.c Fix gcc -Wall warnings in e2fsck 2008-06-07 11:04:10 -04:00
region.c Fix compiling under diet libc 2008-09-12 09:10:39 -04:00
rehash.c e2fsck: Convert e2fsck to new bitmap interface 2009-08-22 22:29:02 -04:00
revoke.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
scantest.c Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
super.c libext2fs: clean up ext2fs_bg_flags_ interfaces 2009-10-25 21:41:32 -04:00
unix.c Convert uses of super->s_*_blocks_count to ext2fs_*_blocks_count() 2009-09-07 20:46:34 -04:00
util.c Convert to use io_channel_read_blk64() and io_channel_write_blk64() 2009-09-07 21:14:24 -04:00