[Bugs] [Bug 1444540] rm -rf <dir> returns ENOTEMPTY even though ls on the mount point returns no files

bugzilla at redhat.com bugzilla at redhat.com
Thu Apr 27 10:50:00 UTC 2017


https://bugzilla.redhat.com/show_bug.cgi?id=1444540



--- Comment #3 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/17102 committed in release-3.10 by
Raghavendra Talur (rtalur at redhat.com) 
------
commit 6577b84b0540c2210978e2d250c30f52914b5401
Author: N Balachandran <nbalacha at redhat.com>
Date:   Mon Apr 17 15:21:20 2017 +0530

    cluster/dht: rm -rf fails if dir has stale linkto files

    rm -rf <dir> fails with ENOENT if dir contains a lot of
    stale linkto files. This is because a single
    readdirp is sent as part of the rmdir which would return
    and delete only as many linkto files on the bricks as would fit
    in one readdirp buffer. Running rm -rf <dir> multiple times
    will eventually delete all the files. The fix sends readdirp
    on each subvol until no more entries are returned.

    > BUG: 1442724
    > Signed-off-by: N Balachandran <nbalacha at redhat.com>
    > Reviewed-on: https://review.gluster.org/17065
    > Smoke: Gluster Build System <jenkins at build.gluster.org>
    > NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    > CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
    > Reviewed-by: Raghavendra G <rgowdapp at redhat.com>
    (cherry picked from commit e5f9ba138571bd18226462c49ff6a55f5c3ed3a4)

    Change-Id: I447f2d193de4bd8ac16e4541c6b919d22250e39e
    BUG: 1444540
    Signed-off-by: N Balachandran <nbalacha at redhat.com>
    Reviewed-on: https://review.gluster.org/17102
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    Smoke: Gluster Build System <jenkins at build.gluster.org>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
    Reviewed-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=LTc5Ehdrl0&a=cc_unsubscribe


More information about the Bugs mailing list