[Bugs] [Bug 1245065] "rm -rf *" from multiple mount points fails to remove directories on all the subvolumes

bugzilla at redhat.com bugzilla at redhat.com
Sat Apr 2 05:03:17 UTC 2016


--- Comment #32 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/13528 committed in master by Raghavendra G
(rgowdapp at redhat.com) 
commit c25f88c953215b1bfc135aeafc43dc00a663206d
Author: Sakshi <sabansal at redhat.com>
Date:   Thu Jul 16 14:31:03 2015 +0530

    dht: lock on subvols to prevent lookup vs rmdir race

    There is a possibility that while an rmdir is completed on
    some non-hashed subvol and proceeding to others, a lookup
    selfheal can recreate the same directory on those subvols
    for which the rmdir had succeeded. Now the deletion of the
    parent directory will fail with an ENOTEMPTY.

    To fix this take blocking inodelk on the subvols before
    starting rmdir. Selfheal must also take blocking inodelk
    before creating the entry.

    Change-Id: I168a195c35ac1230ba7124d3b0ca157755b3df96
    BUG: 1245065
    Signed-off-by: Sakshi <sabansal at redhat.com>
    Reviewed-on: http://review.gluster.org/13528
    CentOS-regression: Gluster Build System <jenkins at build.gluster.com>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    Smoke: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Raghavendra G <rgowdapp at redhat.com>
    Tested-by: Raghavendra G <rgowdapp at redhat.com>

You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=eHg3KBfhDR&a=cc_unsubscribe

More information about the Bugs mailing list