FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Sat May 15, 2021 04:06



Post new topic Reply to topic  [ 8 posts ] 
problem with Vuze downloads on NTFS 
Author Message

Joined: Thu Mar 25, 2010 06:18
Posts: 5
Post problem with Vuze downloads on NTFS
Hi guys,

I have a problem when downloading torrents with Vuze and saving on a NTFS partition under Ubuntu 9.10.
A few seconds after the download starts I'm getting the following error: "Error: Disk read error - flush fails,
write fails, Operation not supported". I assume it's and ntfs-3g issue because it doesn't happen when I set
Vuze to save on my ext3 partition. I'm using the latest stable ntfs-3g 2010.3.6. Any help will be appreciated.

Thanks,
Vladimir


Thu Mar 25, 2010 06:25
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: problem with Vuze downloads on NTFS
Hi,

Quote:
A few seconds after the download starts I'm getting the following error: "Error: Disk read error - flush fails, write fails, Operation not supported".

is there any information in the system log ?

If the file has been created despite the error, can you post its stat and its ntfs attributes :
Code:
stat <file>
getfattr -h -e hex -n system.ntfs_attrib <file>

Otherwise, can you post the parameters of the parent directory (same commands)

Regards

Jean-Pierre


Thu Mar 25, 2010 09:46
Profile

Joined: Thu Mar 25, 2010 06:18
Posts: 5
Post Re: problem with Vuze downloads on NTFS
There's nothing in /var/log/syslog or dmesg.

Looks like Vuze created the files:

Code:
$ stat /media/disk/downloads/Universal\ Book\ of\ Mathematics\ 2007/Universal\ Book\ of\ Mathematics.pdf   File: `/media/disk/downloads/Universal Book of Mathematics 2007/Universal Book of Mathematics.pdf'
  Size: 13660741        Blocks: 0          IO Block: 4096   regular file
Device: 805h/2053d      Inode: 457         Links: 1
Access: (0777/-rwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2010-03-25 12:07:24.370167000 -0400
Modify: 2010-03-25 12:07:18.256529000 -0400
Change: 2010-03-25 12:07:18.256529000 -0400

Code:
$ getfattr -h -e hex -n system.ntfs_attrib /media/disk/downloads/Universal\ Book\ of\ Mathematics\ 2007/Universal\ Book\ of\ Mathematics.pdf
getfattr: Removing leading '/' from absolute path names
# file: media/disk/downloads/Universal\040Book\040of\040Mathematics\0402007/Universal\040Book\040of\040Mathematics.pdf
system.ntfs_attrib=0x20080000


Thu Mar 25, 2010 18:16
Profile

Joined: Thu Mar 25, 2010 06:18
Posts: 5
Post Re: problem with Vuze downloads on NTFS
Update: for a few moments I thought it might not be a NTFS problem because
I tried a different client like KTorrent and the download finished but when I tried
to open the files it looks like they are corrupted.


Thu Mar 25, 2010 18:40
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: problem with Vuze downloads on NTFS
Hi,

The reason is there :
Code:
system.ntfs_attrib=0x20080000

Your file is marked as compressed. This is probably because its parent directory is marked for compression.

Currently ntfs-3g can only write compressed file sequentially, but torrent downloading uses several threads filling the file at different locations, hence the "operation not supported" error.

So you have first to download in a directory not marked for compression, then compress by copying into the directory marked for compression (but just renaming the file will not compress it). See http://www.tuxera.com/community/ntfs-3g ... mpression/

Regards

Jean-Pierre


Thu Mar 25, 2010 20:28
Profile

Joined: Thu Mar 25, 2010 06:18
Posts: 5
Post Re: problem with Vuze downloads on NTFS
Thanks for the explanation Jean-Pierre. Looks like the whole mount point /media/disk is marked for compression.
Is there any way I can unmark it? It's weird because it all worked a few days ago and it stopped all of a sudden.


Thu Mar 25, 2010 23:06
Profile

Joined: Thu Mar 25, 2010 06:18
Posts: 5
Post Re: problem with Vuze downloads on NTFS
I think I fixed it. I unmarked the compression bit with 'setfattr -h -v 0x10000000 -n system.ntfs_attrib'
After I remounted the partition it looks like it worked out. Still don't know how it went wrong though :)


Thu Mar 25, 2010 23:22
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: problem with Vuze downloads on NTFS
Hi,

Quote:
Thanks for the explanation Jean-Pierre. Looks like the whole mount point /media/disk is marked for compression.

You probably formatted it this way (eg by using option -C in mkntfs)

Quote:
Is there any way I can unmark it? It's weird because it all worked a few days ago and it stopped all of a sudden.

Compression is transparent, you may have not been aware of it until you used a torrent download.
To fix it, you only have to unmark the directories. Assuming you do not have specific attribute needs, you can set all the attributes to zero :
Code:
setfattr -h -n system.ntfs_attrib -v 0x00000000 <directory>

Of course, il you have a complex directory tree, you had better execute this command under control of a "find"

Regards

Jean-Pierre


Thu Mar 25, 2010 23:33
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.