[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gluster-devel] metadata race confition (was: ename(2) race conditio
From: |
Emmanuel Dreyfus |
Subject: |
Re: [Gluster-devel] metadata race confition (was: ename(2) race condition) |
Date: |
Tue, 22 May 2012 09:08:48 +0000 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Mon, May 21, 2012 at 10:44:30PM -0700, Anand Avati wrote:
> Is there a way you can extend the trace code above to show the UIDs getting
> returned? Maybe it was the parent directory (subdir) that got a wrong UID
> returned?
Further investigation shows you are right. I traced the
struct fuse_entry_out returned by glusterfs on LOOKUP;
"/subdir", uid = 500, gid = 500, mode = 040755, attr_valid = 1
"/subdir/bugc1.txt", uid = 500, gid = 500, mode = 0100644, attr_valid = 1
"/subdir/bugc1.txt", uid = 500, gid = 500, mode = 0100644, attr_valid = 1
"/subdir/bugc1.txt", uid = 500, gid = 500, mode = 0100644, attr_valid = 1
bugc1.txt is looked up many times as I loop creating/deleting it
subdir is not looked up often since it is cached for 1 second.
New subdir lookups will return correct uid/gid/mode. After some time,
though, it will return incorrect information:
"/subdir/bugc1.txt", uid = 500, gid = 500, mode = 0100644, attr_valid = 1
"/subdir", uid = 0, gid = 0, mode = 040700, attr_valid = 1
--
Emmanuel Dreyfus
address@hidden
- [Gluster-devel] rename(2) race condition, Emmanuel Dreyfus, 2012/05/20
- Re: [Gluster-devel] rename(2) race condition, Emmanuel Dreyfus, 2012/05/20
- Re: [Gluster-devel] rename(2) race condition, Emmanuel Dreyfus, 2012/05/21
- Re: [Gluster-devel] rename(2) race condition, Anand Avati, 2012/05/21
- [Gluster-devel] metadata race confition (was: ename(2) race condition), Emmanuel Dreyfus, 2012/05/22
- Re: [Gluster-devel] metadata race confition (was: ename(2) race condition), Anand Avati, 2012/05/22
- Re: [Gluster-devel] metadata race confition (was: ename(2) race condition), Emmanuel Dreyfus, 2012/05/22
- Re: [Gluster-devel] metadata race confition (was: ename(2) race condition),
Emmanuel Dreyfus <=
- Re: [Gluster-devel] metadata race confition (was: ename(2) race condition), Anand Avati, 2012/05/22
- Re: [Gluster-devel] metadata race confition (was: ename(2) race condition), Emmanuel Dreyfus, 2012/05/22