All of lore.kernel.org
 help / color / mirror / Atom feed
* [NFS] -EXDEV between mounts that are same fs
@ 2008-02-09 19:05 Pierre Ossman
       [not found] ` <20080209200503.6a11e88b-mgABNEgzgxm+PRNnhPf8W5YgPPQkE1Si@public.gmane.org>
  0 siblings, 1 reply; 16+ messages in thread
From: Pierre Ossman @ 2008-02-09 19:05 UTC (permalink / raw)
  To: nfs

Hi,

I have a somewhat odd use case that I think has some room for improvement.

I have a single fs exported on the server (/export/data). On the client I have mount /export/data/a and /export/data/b. Doing a rename("/export/data/a/foo", "/export/data/b/foo") results in -EXDEV.

Now this is a bit annoying from a program point of view as it is very difficult to detect this beforehand. Doing a stat() on source and destination indicates that they are the same fs. So it would seem POSIX would guarantee I would not get a -EXDEV in that case. I assume this is simply a local, client-side check that determines that two different mount entries are involved.

So, would it be possible to actually make the kernel realise that the source and target are in face the same fs on the server (so a NFS rename will succeed)? Or at least make the kernel present different device st_dev for the two trees.

Rgds

-- 
     -- Pierre Ossman

  Linux kernel, MMC maintainer        http://www.kernel.org
  PulseAudio, core developer          http://pulseaudio.org
  rdesktop, core developer          http://www.rdesktop.org

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
_______________________________________________
Please note that nfs@lists.sourceforge.net is being discontinued.
Please subscribe to linux-nfs@vger.kernel.org instead.
    http://vger.kernel.org/vger-lists.html#linux-nfs


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2008-02-12  5:43 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-09 19:05 [NFS] -EXDEV between mounts that are same fs Pierre Ossman
     [not found] ` <20080209200503.6a11e88b-mgABNEgzgxm+PRNnhPf8W5YgPPQkE1Si@public.gmane.org>
2008-02-09 19:10   ` J. Bruce Fields
2008-02-09 20:35     ` Pierre Ossman
     [not found]       ` <20080209213511.59ff4e2c-mgABNEgzgxm+PRNnhPf8W5YgPPQkE1Si@public.gmane.org>
2008-02-09 20:40         ` Trond Myklebust
     [not found]           ` <1202589611.11035.0.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2008-02-09 20:57             ` Pierre Ossman
2008-02-09 23:14         ` J. Bruce Fields
2008-02-10 12:12           ` Pierre Ossman
     [not found]             ` <20080210131224.1d4ae39f-mgABNEgzgxm+PRNnhPf8W5YgPPQkE1Si@public.gmane.org>
2008-02-10 15:26               ` J. Bruce Fields
2008-02-10 15:33                 ` Christoph Hellwig
2008-02-10 15:57                   ` J. Bruce Fields
2008-02-10 15:59                     ` Christoph Hellwig
2008-02-10 18:10                       ` J. Bruce Fields
2008-02-10 18:21                         ` Christoph Hellwig
2008-02-11 16:21                           ` J. Bruce Fields
2008-02-12  4:54                             ` Christoph Hellwig
2008-02-09 20:03   ` Trond Myklebust

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.