Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zero-length files shouldn't reserve a cluster #11

Open
natevw opened this issue Jun 11, 2014 · 1 comment
Open

Zero-length files shouldn't reserve a cluster #11

natevw opened this issue Jun 11, 2014 · 1 comment

Comments

@natevw
Copy link
Owner

natevw commented Jun 11, 2014

Right now due somewhat to the chain architecture, zero-length files always have at least their first cluster allocated. This is somewhat harmless, but is a bit wasteful and does go against the FAT spec which says the first cluster of a zero-length file should be set to "0".

@natevw
Copy link
Owner Author

natevw commented Jun 11, 2014

I'm not sure this is urgent, but one way to tackle would be to move all the FAT allocations to the chain, and have the higher-level stuff simply read its .firstCluster property when updating the entry for the usual file size/mtime stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant