[Gluster-devel] Duplicate entries and other weirdness in a 3*4 volume

Jeff Darcy jdarcy at redhat.com
Tue Jul 22 11:04:54 UTC 2014


> One possible solution is to convert directories into files managed by
> storage/posix (some changes will also be required in dht and afr
> probably).  We will have full control about the format of this file,
> so we'll be able to use the directory offset that we want to avoid
> interferences with upper xlators in readdir(p) calls. This will also
> allow to optimize directory accesses and even minimize or solve the
> problem of renames.

Unfortunately, most of the problems with renames involve multiple
directories and/or multiple bricks, so changing how we store directory
information within a brick won't solve those particular problems.

> Additionally, this will give the same reliability to directories that
> files have (replicated or dispersed).

If it's within storage/posix then it's well below either replication or
dispersal.  I think there's the kernel of a good idea here, but it's
going to require changes to multiple components (and how they relate to
one another).


More information about the Gluster-devel mailing list