I want to unset sparse flag of a file in ntfs-3g partition, using only linux. and properly(zerofill holes ?).
What I have tried: setfattr -h -v 0x00000000 -n system.ntfs_attrib_be /xxx/file
I want to unset sparse flag of a file in ntfs-3g partition, using only linux. and properly(zerofill holes ?).
What I have tried: setfattr -h -v 0x00000000 -n system.ntfs_attrib_be /xxx/file
I found a workaround. using the following command may clear the sparse flag if there is holes in orignal spase file.
What if there no holes in orignal sparse file? also there is a wrokaround.
Finally, You can patch ntfsfallocate's source(provided by ntfs-3g), to clear the sparse flag directly, but I am not show any c code here.