xfstests: 298: Test that FS sends discard requests only on free blocks
authorTomas Racek <tracek@redhat.com>
Sun, 3 Feb 2013 10:19:58 +0000 (10:19 +0000)
committerRich Johnston <rjohnston@sgi.com>
Tue, 26 Feb 2013 15:22:24 +0000 (09:22 -0600)
commit76765b7e4e425dee394e12789264d6db1fea2876
treec0634fead2bd983a076167b34a40c0775348dfd1
parent29fe8007e75bf8983fa1267ae2850787262f17c1
xfstests: 298: Test that FS sends discard requests only on free blocks

V1->V2: Change way of testing suggested by Dave Chinner
1. Create image file with FS on it
2. Call fstrim to discard free blocks
3. Check that every punched hole in the image file is in the area
   that is marked as free

Signed-off-by: Tomas Racek <tracek@redhat.com>
Reviewed-by: Rich Johnston <rjohnston@sgi.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
298 [new file with mode: 0644]
298.out [new file with mode: 0644]
group