Project

General

Profile

Tasks #64413

Updated by Christopher Hoffman 3 months ago

When a smaller file is copied to overwrite a larger file, the dest inode size is not changed to source file size. When inspecting config.log, it has trailing 0s. 

 <pre> 
 [fscrypt_test_unlocked_ffsb]$ [scrypt_test_unlocked_ffsb]$ cp ffsb_stats.c config.log  
 [fscrypt_test_unlocked_ffsb]$ ll 
 total 91 
 -rw-------. 1 choffman choffman    7547 Feb 12 22:49 config.log 
 -rw-------. 1 choffman choffman    7130 Feb 12 22:49 ffsb_stats.c 
 </pre> 


 config.log file size should be 7130.

Back