nfs:truncate didn't zero the new area

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




There is a error when using truncate in 2.6.32e.g1.create a file test,the content is:test:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa  (100 a)2.use truncate(test,25),the content is:test:aaaaaaaaaaaaaaaaaaaaaaa3.use truncate(test,50),what we expect result is:test:aaaaaaaaaaaaaaaaaaaaaaa0000000000000000000000but in fact the content is:test:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaathe new part is not cleared.
I lookuped the code of nfs and nfsd,but i haven't fount the code that clear the new part of truncate.
 		 	   		  
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux