Bug#192882: can't reproduce on vfat fs
Hello,
I got xfs and mc with these versions:
# mcedit -V
GNU Midnight Commander 4.6.1
# mkfs.xfs -V
mkfs.xfs version 2.9.4
# uname -r
2.6.22-2-amd64
And I've tried to reproduce the bug, with no luck:
zion:/tmp# dd if=/dev/zero of=/tmp/test count=40000
40000+0 records in
40000+0 records out
20480000 bytes (20 MB) copied, 0.269495 seconds, 76.0 MB/s
zion:/tmp# mkfs.xfs test
meta-data=test isize=256 agcount=1, agsize=4096 blks
= sectsz=512 attr=0
data = bsize=4096 blocks=4096, imaxpct=25
= sunit=0 swidth=0 blks, unwritten=1
naming =version 2 bsize=4096
log =internal log bsize=4096 blocks=1200, version=1
= sectsz=512 sunit=0 blks, lazy-count=0
realtime =none extsz=4096 blocks=0, rtextents=0
zion:/tmp# mkdir testmnt
zion:/tmp# mount -o loop test testmnt
zion:/tmp# cd testmnt
zion:/tmp/testmnt# echo "test string" >important_file
zion:/tmp/testmnt# dd if=/dev/zero of=b bs=1
dd: writing `b': No space left on device
11751425+0 records in
11751424+0 records out
11751424 bytes (12 MB) copied, 18.8108 seconds, 625 kB/s
zion:/tmp/testmnt# df -k .
Filesystem 1K-blocks Used Available Use% Mounted on
/tmp/test 11584 11544 40 100% /tmp/testmnt
zion:/tmp/testmnt# mcedit important_file
zion:/tmp/testmnt# ls -l important_file
-rw-r--r-- 1 root root 27 2008-01-13 19:28 important_file
zion:/tmp/testmnt# cat important_file
test string
123
123
123
So, I've tried to pad the file with some stuff generated by this script:
zion:/tmp# python -c 'for i in range(1,1024): print "%s
0123456789012345678901234567890123456789" % i' | wc -c
45951
zion:/tmp# python -c 'for i in range(1,1024): print "%s
0123456789012345678901234567890123456789" % i' > /tmp/stuff
The I've included /tmp/stuff into /tmp/testmnt/important_file and
saving, but I recieved "Cannot save file" but the file is saved until
possible:
zion:/tmp/testmnt# ls -l
total 11500
-rw-r--r-- 1 root root 11751424 2008-01-13 19:23 b
-rw-r--r-- 1 root root 24576 2008-01-13 19:49 important_file
zion:/tmp/testmnt# df -k .
Filesystem 1K-blocks Used Available Use% Mounted on
/tmp/test 11584 11564 20 100% /tmp/testmnt
I hope this can help. If you need additional help/info, just ask.
Regards,
Sandro
--
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Reply to: