mcmilk / zstdmt

Multithreading Library for Brotli, Lizard, LZ4, LZ5, Snappy and Zstandard
Other
181 stars 33 forks source link

preserve file attributes #29

Closed tansy closed 5 months ago

tansy commented 7 months ago

Preserve file attributes, and modification time

It means to Preserve file attributes, and modification time as gzip/bzip do. For some reason the modification doesn't get preserved although in my test it worked. Even changing it before closing file worked (test/2). Maybe someone can spot the problem and fix that.

tansy commented 5 months ago

I found a minute to check that with strace and found an error and also problem with system (?) write buffer that was writing right before closing but after set_fstat(). Forcing flush solved it.