JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 30.10.2014, 12:47
zdzichu476
Guest
 
Posts: n/a
Default Files aren't allocated before write on Windows

To eliminate heavy file fragmentation, jDownloader should use **External links are only visible to Support Staff**SetEndOfFile function after starting download, so Windows will know exact file's size and he can allocate enough free space beforehand. As it is right now, jDownloader just writes files in chunks without telling Windows what final size will be, so file will get heavily fragmented. I don't know if java doesn't support this, but if it does you could implement this.
Reply With Quote
  #2  
Old 30.10.2014, 13:37
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 52,420
Default

Ticket:


GreeZ psp
__________________
JD Supporter, Plugin Dev. & Community Manager
How to create a log || Wie man einen Log erstellt
Captcha FAQ EN || Captcha FAQ DE || Erste Schritte & Tutorials
JDownloader 2 Setup Download
-----=>Support Chat<=-----
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist
Reply With Quote
  #3  
Old 03.11.2014, 21:19
zdzichu476
Guest
 
Posts: n/a
Default

Since I can't create account on tracker, I will answer here:

@jiaz
You are right, I forgot that jDownloader can download file in multiple chunks. And that way, when using SetEndOfFile it will write zeros to where furthest pointer is.
But this still could be useful when someone uses only one chunk, it won't write zeros to whole file. For example, Total Commander uses this when copying/extracting files, IMGBurn uses this when creating iso. They first send SetEndOfFile then move pointer to beginning and start writing data. I think if you already made some test build, then you could leave this and just use it when file is downloading in one chunk. Or add toggle option to advanced config.

Last edited by zdzichu476; 03.11.2014 at 21:28.
Reply With Quote
  #4  
Old 03.11.2014, 21:22
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 52,420
Default

I added your comment to the bugtracker ticket

GreeZ psp
__________________
JD Supporter, Plugin Dev. & Community Manager
How to create a log || Wie man einen Log erstellt
Captcha FAQ EN || Captcha FAQ DE || Erste Schritte & Tutorials
JDownloader 2 Setup Download
-----=>Support Chat<=-----
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist
Reply With Quote
  #5  
Old 04.11.2014, 17:29
zdzichu476
Guest
 
Posts: n/a
Default

@jiaz
No, you will not create sparse file. Here's something I found that could shed some light on this **External links are only visible to Support Staff****External links are only visible to Support Staff**
OP Provided good description of this problem and how it could be resolved, but Igor Pavlov somehow misunderstood him
Reply With Quote
  #6  
Old 04.11.2014, 17:39
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 52,420
Default

Answered.

GreeZ psp
__________________
JD Supporter, Plugin Dev. & Community Manager
How to create a log || Wie man einen Log erstellt
Captcha FAQ EN || Captcha FAQ DE || Erste Schritte & Tutorials
JDownloader 2 Setup Download
-----=>Support Chat<=-----
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 14:54.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.