| To: | Eric Sandeen <sandeen@xxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] fix corruption case for block size < page size |
| From: | Lachlan McIlroy <lachlan@xxxxxxx> |
| Date: | Wed, 07 Jan 2009 17:32:09 +1100 |
| Cc: | xfs-oss <xfs@xxxxxxxxxxx> |
| In-reply-to: | <4964435C.802@sandeen.net> |
| Organization: | SGI |
| References: | <49435F35.40109@sandeen.net> <4943FCD7.2010509@sandeen.net> <494735D9.8020809@sgi.com> <49473F5C.3070308@sandeen.net> <49474530.2080809@sgi.com> <4947466D.7000705@sandeen.net> <494748FA.20404@sandeen.net> <49474FE4.2030500@sandeen.net> <49643C5A.30608@sgi.com> <4964435C.802@sandeen.net> |
| Reply-to: | lachlan@xxxxxxx |
| User-agent: | Thunderbird 2.0.0.19 (X11/20081209) |
Eric Sandeen wrote:
Lachlan McIlroy wrote:Eric Sandeen wrote:Eric, did you find out why sync was allocating that second block?Eric Sandeen wrote:
# xfs_io -f -c "pwrite -S 0x11 -b 513 0 513" -c "truncate 1" -c "truncate 513"
file
wrote 513/513 bytes at offset 0
513.000000 bytes, 1 ops; 0.0000 sec (8.895 MiB/sec and 18181.8182 ops/sec)
# xfs_bmap -vvp file; sync; xfs_bmap -vvp file
file:
EXT: FILE-OFFSET BLOCK-RANGE AG AG-OFFSET TOTAL FLAGS
0: [0..0]: 48..48 0 (48..48) 1 00000
1: [1..1]: hole 1
FLAG Values:
010000 Unwritten preallocated extent
001000 Doesn't begin on stripe unit
000100 Doesn't end on stripe unit
000010 Doesn't begin on stripe width
000001 Doesn't end on stripe width
file:
EXT: FILE-OFFSET BLOCK-RANGE AG AG-OFFSET TOTAL FLAGS
0: [0..1]: 48..49 0 (48..49) 2 00000
FLAG Values:
010000 Unwritten preallocated extent
001000 Doesn't begin on stripe unit
000100 Doesn't end on stripe unit
000010 Doesn't begin on stripe width
000001 Doesn't end on stripe widthxfs_bmap will cause the file to be flushed so there should be no dirty data to be flushed during the sync. Strange. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Brief97, Anton Lehmann |
|---|---|
| Next by Date: | Re: xfs error, Justin Piszcz |
| Previous by Thread: | Re: [PATCH] fix corruption case for block size < page size, Eric Sandeen |
| Next by Thread: | Re: [PATCH] fix corruption case for block size < page size, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |