Whamcloud - gitweb
libext2: Fix EXT2_LIB_SOFTSUPP masking
authorEric Sandeen <sandeen@redhat.com>
Fri, 16 Sep 2011 20:49:16 +0000 (15:49 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 16 Sep 2011 22:43:04 +0000 (18:43 -0400)
commitbc28abc537ff49d708abd66cc70ee451fdd010fd
treec0766c776f8b071d9dd067dd2c043413a958b284
parentae96c678e15eda2a5d0eea7e1067b449f6604aff
libext2: Fix EXT2_LIB_SOFTSUPP masking

EXT2_LIB_SOFTSUPP_INCOMPAT_* are supposed to be bitmasks
of features which can be opened even though they are
under development.  The intent is that these are masked
out of the features list, so that they will be ignored
on open.

However, the code does a logical not vs. a bitwise not:

features &= !EXT2_LIB_SOFTSUPP_INCOMPAT;

which will not have the desired effect...

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/openfs.c