xfstests generic 308: test write to the last block of max file size on ext4
authorEryu Guan <eguan@redhat.com>
Mon, 1 Apr 2013 10:57:42 +0000 (10:57 +0000)
committerRich Johnston <rjohnston@sgi.com>
Fri, 5 Apr 2013 13:26:47 +0000 (08:26 -0500)
commit94e1e7e53a89d9a3387bee7dea60091afaf79704
tree9ac8a9f1bb5822413fa61545e4c4d3a3e35be724
parent6422b818388c652183b6b517be1feac554f5f004
xfstests generic 308: test write to the last block of max file size on ext4

On unpatched ext4 if an extent exists which includes the block right
before the maximum file offset, and the block for the maximum file
offset is written, the kernel panics.

On patched ext4, the write would get EFBIG since we lower s_maxbytes
by one fs block.

Regression test for commit:
f17722f ext4: Fix max file size and logical block counting of extent format file

Though it's an ext4 specific issue, it's no harm to run on all file
systems, so put it in generic.

Signed-off-by: Eryu Guan <eguan@redhat.com>
Reviewed-by: Rich Johnston <rjohnston@sgi.com>
[rjohnston@sgi.com renumbered test to next in group sequence]
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
tests/generic/308 [new file with mode: 0644]
tests/generic/308.out [new file with mode: 0644]
tests/generic/group