From: Kevin Shanahan Subject: Re: [Bug 9855] ext3 ACL corruption Date: Thu, 31 Jan 2008 22:44:24 +1030 Message-ID: <1201781664.4480.16.camel@kulgan.wumi.org.au> References: <1201771074.4480.2.camel@kulgan.wumi.org.au> <20080131100539.GQ23836@webber.adilger.int> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-I6alyLB6o7Cx5whpMMcy" Cc: linux-ext4@vger.kernel.org, Andreas Gruenbacher , bugme-daemon@bugzilla.kernel.org, Theodore Ts'o , Andrew Morton To: Andreas Dilger Return-path: Received: from bowden.ucwb.org.au ([203.122.237.119]:39051 "EHLO mail.ucwb.org.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1764635AbYAaMkd (ORCPT ); Thu, 31 Jan 2008 07:40:33 -0500 In-Reply-To: <20080131100539.GQ23836@webber.adilger.int> Sender: linux-ext4-owner@vger.kernel.org List-ID: --=-I6alyLB6o7Cx5whpMMcy Content-Type: text/plain Content-Transfer-Encoding: 7bit On Thu, 2008-01-31 at 03:05 -0700, Andreas Dilger wrote: > ... To get the interesting bits you need: > > debugfs: stat <966665> # prints decoded inode, "File ACL:" is a block number > debugfs: imap <966665> # prints inode block number, offset > > dd if=/dev/mapper/vg_main-lv_samba of=/tmp/inode.bin bs=4k count=1 skip={iblock} > dd if=/dev/mapper/vg_main-lv_samba of=/tmp/inode.bin bs=4k count=1 skip={ACLblk} Ah, ok - learning fast. Lets see how I go this time: e2fsck 1.40-WIP (14-Nov-2006) Pass 1: Checking inodes, blocks, and sizes (entry->e_value_offs + entry->e_value_size: 116, offs: 120) Extended attribute in inode 3342652 has a value offset (72) which is invalid Clear? no ... # debugfs /dev/mapper/vg_main-lv_samba debugfs: stat <3342652> Inode: 3342652 Type: regular Mode: 0770 Flags: 0x0 Generation: 3684645243 User: 0 Group: 10140 Size: 18432 File ACL: 0 Directory ACL: 0 Links: 1 Blockcount: 40 Fragment: Address: 0 Number: 0 Size: 0 ctime: 0x475be06e -- Sun Dec 9 23:02:46 2007 atime: 0x475d4073 -- Tue Dec 11 00:04:43 2007 mtime: 0x45d2686a -- Wed Feb 14 12:09:54 2007 Size of extra inode fields: 4 Extended attributes stored in inode body: = "01 00 00 00 01 00 07 00 04 00 05 00 08 00 05 00 d6 27 00 00 08 00 07 00 09 28 00 00 08 00 07 00 0a 28 00 00 10 00 07 00 20 00 00 00 " (44) DOSATTRIB = "0x20" (4) BLOCKS: (0):6713397, (1):6713399, (2):6713395, (3):6713405, (4):6713396 TOTAL: 5 debugfs: imap <3342652> Inode 3342652 is part of block group 204 located at block 6684693, offset 0x0b00 # dd if=/dev/mapper/vg_main-lv_samba of=iblock.bin bs=4k count=1 skip=6684693 1+0 records in 1+0 records out 4096 bytes (4.1 kB) copied, 0.000429132 seconds, 9.5 MB/s I'm assuming that "File ACL: 0" means that there's no ACL block. > Attach all of the above to an email to the list... It will only be 8 kB. Ok, done. Hopefully this is what you mean by "the list". :) Cheers, Kevin. --=-I6alyLB6o7Cx5whpMMcy Content-Disposition: attachment; filename=iblock.bin Content-Type: application/octet-stream; name=iblock.bin Content-Transfer-Encoding: base64 +IEAAABQAABwQF1HbuBbR48R0EMAAAAAnCcBACgAAAAAAAAAAAAAAEAqZwBBKmcAQipnAEMqZwBE KmcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACRilR0AAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAEAAAAAAAC6gACTAAAAAAALAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAHAAQABQAIAAUA 1icAAAgABwAJKAAACAAHAAooAAAQAAcAIAAAAPiBAAAAfgAAcEBdR27gW0fY2/9CAAAAAJwnAQBA AAAAAAAAAAAAAABFKmcARipnAEcqZwBIKmcASSpnAEoqZwBLKmcATCpnAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAA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