Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


jpoc

1043 posts

Uber Geek
+1 received by user: 289


#298446 17-Jun-2022 19:22
Send private message

Is there a file system that makes files sparse by default as they are created by an application that knows nothing about sparse files but which is basically writing files that can be sparse.

 

I don't mind which OS this would be using. All that I know of are systems that allow you to mark a file as sparse after it has been created.


Create new topic
SirHumphreyAppleby
2938 posts

Uber Geek
+1 received by user: 1860


  #2931199 17-Jun-2022 20:28
Send private message

Have you looked at ZFS? I use it on FreeBSD and the on-disk size reported by ls -lsk is much smaller than the reported file size, even if you edit the last byte in an otherwise 0-filled file.




jpoc

1043 posts

Uber Geek
+1 received by user: 289


  #2931209 17-Jun-2022 21:15
Send private message

SirHumphreyAppleby:

 

Have you looked at ZFS? I use it on FreeBSD and the on-disk size reported by ls -lsk is much smaller than the reported file size, even if you edit the last byte in an otherwise 0-filled file.

 

 

Is that using sparse files or compression? I know that zfs can use sparse files as vdevs, I did't know that it could create sparse files.

 

 


SirHumphreyAppleby
2938 posts

Uber Geek
+1 received by user: 1860


  #2931268 18-Jun-2022 07:43
Send private message

jpoc:

 

Is that using sparse files or compression?

 

 

My volumes do have lz4 compression enabled, but according to this post, ZFS doesn't store the null blocks on disk.


Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.