login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
June
»
11
Re: [PATCH v3] ocfs2: Let ocfs2_setattr use new truncate sequence.
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Tao Ma
Subject:
Re: [PATCH v3] ocfs2: Let ocfs2_setattr use new truncate sequence.
Date: Thursday, June 10, 2010 - 5:00 pm
Joel Becker wrote:
quoted text
> On Thu, Jun 10, 2010 at 08:09:36PM +0800, Tao Ma wrote: > >> Joel Becker wrote: >> >>> Is your concern that the u/gid checks may be against stale ids? >>> >> So I think we should have one inode_change_ok before the cluster >> lock and another after the cluster lock. >> The first one will save us a lot of cluster lock effort if the user >> pass us the wrong arguments while the later >> one will test again with the refreshed inode info. >> > > But what if the other node has given us permission, and then we > fail? Say the file was owned by you. On node 2, root sets it to be > owned by me. Then on node 1, I go to change the file permissions. > inode_change_ok() will fail, because the in-memory inode still thinks > you are the owner. > I guess it does need to be under the lock. >
OK, so I will revise my patch to move it under cluster lock. Regards, Tao --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH v2] ocfs2: Let ocfs2_setattr use new truncate sequence.
, Tao Ma
, (Wed Jun 9, 8:53 pm)
Re: [PATCH v2] ocfs2: Let ocfs2_setattr use new truncate s ...
, Nick Piggin
, (Wed Jun 9, 9:42 pm)
Re: [PATCH v2] ocfs2: Let ocfs2_setattr use new truncate s ...
, Tao Ma
, (Wed Jun 9, 10:06 pm)
[PATCH v3] ocfs2: Let ocfs2_setattr use new truncate sequence.
, Tao Ma
, (Wed Jun 9, 10:08 pm)
Re: [PATCH v3] ocfs2: Let ocfs2_setattr use new truncate s ...
, Joel Becker
, (Wed Jun 9, 10:58 pm)
Re: [PATCH v3] ocfs2: Let ocfs2_setattr use new truncate s ...
, Christoph Hellwig
, (Thu Jun 10, 1:27 am)
Re: [PATCH v3] ocfs2: Let ocfs2_setattr use new truncate s ...
, Joel Becker
, (Thu Jun 10, 1:47 am)
Re: [PATCH v3] ocfs2: Let ocfs2_setattr use new truncate s ...
, Nick Piggin
, (Thu Jun 10, 5:28 am)
Re: [PATCH v3] ocfs2: Let ocfs2_setattr use new truncate s ...
, Joel Becker
, (Thu Jun 10, 11:11 am)
Re: [PATCH v3] ocfs2: Let ocfs2_setattr use new truncate s ...
, Tao Ma
, (Thu Jun 10, 5:00 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?
git-commits-head
:
Linux Kernel Mailing List
iSeries: fix section mismatch in iseries_veth
Linux Kernel Mailing List
ixbge: remove TX lock and redo TX accounting.
Linux Kernel Mailing List
ixgbe: fix several counter register errata
Linux Kernel Mailing List
b43: fix build with CONFIG_SSB_PCIHOST=n
Linux Kernel Mailing List
9p: block-based virtio client
linux-netdev
:
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
Michael Breuer
Re