On Tue, 2006-09-05 at 14:45 +0800, Ian Kent wrote: > On Tue, 2006-09-05 at 00:57 -0400, Trond Myklebust wrote: > > On Tue, 2006-09-05 at 12:06 +0800, Ian Kent wrote: > > > > > > One way to fix this is to simply not hash the dentry when we're doing > > > > the O_EXCL intent optimisation, but rather to only hash it _after_ we've > > > > successfully created the file on the server. Something like the attached > > > > patch ought to do it. > > > > > > No. > > > > > > This patch simply marks the dentry negative and returns ENOMEM from the > > > lookup which, as would be expected, results in this error being returned > > > to userspace. > > > > Oops. You are right. I forgot to set res=NULL... > > Now returns EPERM. Sorry that's EACCES. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- Re: [PATCH 0/7] Permit filesystem local caching and NFS superblock sharing [try #13]
- From: Andrew Morton <[email protected]>
- Re: [PATCH 0/7] Permit filesystem local caching and NFS superblock sharing [try #13]
- From: Andrew Morton <[email protected]>
- Re: [PATCH 0/7] Permit filesystem local caching and NFS superblock sharing [try #13]
- From: Andrew Morton <[email protected]>
- Re: [PATCH 0/7] Permit filesystem local caching and NFS superblock sharing [try #13]
- From: Andrew Morton <[email protected]>
- [PATCH 0/7] Permit filesystem local caching and NFS superblock sharing [try #13]
- From: David Howells <[email protected]>
- Re: [PATCH 0/7] Permit filesystem local caching and NFS superblock sharing [try #13]
- From: David Howells <[email protected]>
- Re: [PATCH 0/7] Permit filesystem local caching and NFS superblock sharing [try #13]
- From: David Howells <[email protected]>
- Re: [PATCH 0/7] Permit filesystem local caching and NFS superblock sharing [try #13]
- From: David Howells <[email protected]>
- Re: [PATCH 0/7] Permit filesystem local caching and NFS superblock sharing [try #13]
- From: Andrew Morton <[email protected]>
- Re: [PATCH 0/7] Permit filesystem local caching and NFS superblock sharing [try #13]
- From: Trond Myklebust <[email protected]>
- Re: [PATCH 0/7] Permit filesystem local caching and NFS superblock sharing [try #13]
- From: David Howells <[email protected]>
- Re: [PATCH 0/7] Permit filesystem local caching and NFS superblock sharing [try #13]
- From: Trond Myklebust <[email protected]>
- Re: [PATCH 0/7] Permit filesystem local caching and NFS superblock sharing [try #13]
- From: Ian Kent <[email protected]>
- Re: [PATCH 0/7] Permit filesystem local caching and NFS superblock sharing [try #13]
- From: Trond Myklebust <[email protected]>
- Re: [PATCH 0/7] Permit filesystem local caching and NFS superblock sharing [try #13]
- From: Ian Kent <[email protected]>
- Re: [PATCH 0/7] Permit filesystem local caching and NFS superblock sharing [try #13]
- Prev by Date: Re: 2.6.18-rc5-mm1 unusual IRQ number for VIA device
- Next by Date: Re: [PATCH] lockdep: disable lock debugging when kernel state becomes untrusted
- Previous by thread: Re: [PATCH 0/7] Permit filesystem local caching and NFS superblock sharing [try #13]
- Next by thread: Re: [PATCH 0/7] Permit filesystem local caching and NFS superblock sharing [try #13]
- Index(es):