* could modify sillyrename to put files in /tmp
@ 2012-02-02 2:18 wangjing
2012-02-02 13:50 ` Myklebust, Trond
2012-02-03 0:07 ` Mantas
0 siblings, 2 replies; 3+ messages in thread
From: wangjing @ 2012-02-02 2:18 UTC (permalink / raw)
To: linux-nfs, linux-kernel; +Cc: wjk302
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb2312", Size: 933 bytes --]
In nfs v3 ,if mulity process visit nfs mount nfs dir ,there sometimes occour .nfsXXX can't delete .
If modify sillyrename to put files in /tmp ,it will be more friendly to nfs user.
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 ?
2012-02-02
wangjing
ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: could modify sillyrename to put files in /tmp
2012-02-02 2:18 could modify sillyrename to put files in /tmp wangjing
@ 2012-02-02 13:50 ` Myklebust, Trond
2012-02-03 0:07 ` Mantas
1 sibling, 0 replies; 3+ messages in thread
From: Myklebust, Trond @ 2012-02-02 13:50 UTC (permalink / raw)
To: wangjing; +Cc: linux-nfs, linux-kernel, wjk302
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 1138 bytes --]
On Thu, 2012-02-02 at 10:18 +0800, wangjing wrote:
> In nfs v3 ,if mulity process visit nfs mount nfs dir ,there sometimes occour .nfsXXX can't delete .
>
> If modify sillyrename to put files in /tmp ,it will be more friendly to nfs user.
No it wouldn't. Think permissions....
> 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 ?
>
NACK.
--
Trond Myklebust
Linux NFS client maintainer
NetApp
Trond.Myklebust@netapp.com
www.netapp.com
ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: could modify sillyrename to put files in /tmp
2012-02-02 2:18 could modify sillyrename to put files in /tmp wangjing
2012-02-02 13:50 ` Myklebust, Trond
@ 2012-02-03 0:07 ` Mantas
1 sibling, 0 replies; 3+ messages in thread
From: Mantas @ 2012-02-03 0:07 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-nfs
On 2012-02-02 04:18, wangjing wrote:
> In nfs v3 ,if mulity process visit nfs mount nfs dir ,there sometimes occour .nfsXXX can't delete .
>
> If modify sillyrename to put files in /tmp ,it will be more friendly to nfs user.
What would then happen if /tmp was on a separate filesystem than the
original file?
> 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
Then modify the cron job to ignore ".nfs*" files.
--
Mantas M.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-02-03 0:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-02 2:18 could modify sillyrename to put files in /tmp wangjing
2012-02-02 13:50 ` Myklebust, Trond
2012-02-03 0:07 ` Mantas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).