Whamcloud - gitweb
e2fsck: fix corruption of Hurd filesystems
authorJustus Winter <4winter@informatik.uni-hamburg.de>
Fri, 23 Jan 2015 15:15:57 +0000 (10:15 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 23 Jan 2015 15:15:57 +0000 (10:15 -0500)
commit36769c606c270094df0431cbcab9932905adcedc
treeca307e6480e9658ad4dab20e4c7712978ffc863c
parentc916e5248bab349f4375dcced9c8709fe4b1c8c2
e2fsck: fix corruption of Hurd filesystems

Previously, e2fsck accessed the field osd2.linux2.l_i_file_acl_high
field without checking that the filesystem is indeed created for
Linux.  This lead to e2fsck constantly complaining about certain
nodes:

i_file_acl_hi for inode XXX (/dev/console) is 32, should be zero.

By "correcting" this problem, e2fsck would clobber the field
osd2.hurd2.h_i_mode_high.

Properly guard access to the OS dependent fields.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass1.c
e2fsck/pass2.c