Hello,
I'm getting an ERANGE error when I write files in a particular way on an
NTFS 3.1 disk using ntfsprogs-2.0.0. Attached please find a simple
perl script to reproduce this problem. I run it as:
rm /ntfsdisk/foo; ./mjatest.pl > /ntfsdisk/foo
When I turn on debugging I see this on the fourth write:
WRITE[134720624] 4096 bytes to 4096
ntfs_attr_pwrite(): Entering for inode 0x2ee1, attr 0x80, pos 0x1000, count 0x1000.
__ntfs_attr_truncate(): Entering for inode 0x2ee1, attr 0x80.
ntfs_non_resident_attr_expand(): Entering for inode 0x2ee1, attr 0x80, new size 8192, current size 4096.
ntfs_attr_map_runlist(): Entering for inode 0x2ee1, attr 0x80, vcn 0x1.
ntfs_attr_find(): Entering for attribute type 0x80.
ntfs_mapping_pairs_decompress(): Entering for attr 0x80.
dst:
NTFS-fs DEBUG: Dumping runlist (values in hex):
VCN LCN Run length
0 1ddc169 1
1 LCN_RL_NOT_MAPPED 0 (runlist end)
src:
NTFS-fs DEBUG: Dumping runlist (values in hex):
VCN LCN Run length
0 1ddc169 1
1 LCN_ENOENT 0 (runlist end)
Run lists overlap. Cannot merge!
Failed to merge runlists.
Failed to map runlist.
__ntfs_attr_truncate(): Failed.
ntfs_attr_pwrite(): Attribute extend failed.
ntfs_attr_pwrite returned -1 bytes instead of requested 4096 bytes (offset 4096).
unique: 152, error: -34 (Numerical result out of range), outsize: 16
unique: 153, opcode: WRITE (16), nodeid: 7, insize: 4160
The complete debug output is also attached.
My configuration is:
Ubuntu 6.06.2 LTS (GNU/Linux 2.6.15-53-686)
fuse-2.7.4
ntfsprogs-2.0.0
Chkdisk on Windows XP SP2 reports that the NTFS disk is OK. Can you
help?
|