On 02/01/2012 06:09 PM, wangjing wrote: > > may i ask a question? thanks a lot. > > the background > 1、Linux fs has /nfsmnt/work_pub/web and /nfsmnt/work_inwork/web ,they use NFS V3 mount > 2、there is many process will read and write files in the dir /nfsmnt/work_pub/web > 3、cron will del all files in dir /nfsmnt/work_pub/web in period,and will copy all the files which in the dir /nfsmnt/work_inwork/web > > in some times delete all files in /nfsmnt/work_pub/web will faild ,because there is some .nfsXXXX > > > > My question is :can i modify nfs_sillyrename funncion in the fs/nfs/dir.c , general all .nfsXXX in /tmp,and make kernel ? > > You can't do this. /tmp on the client is on a different superblock than the nfs mount, and the point of sillyrename is that it is a rename and not a move. (i.e same inode) The /tmp on the server is not even accessible on the client, which does the sillyrename. You'll have to better your scripts to loop and delete until all .nfsXXXX go away because these are temporarily there until the application on the client stops using the file. Cheers Boaz -- 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