gluster-devel
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]