Bug 1444540
| Summary: | rm -rf <dir> returns ENOTEMPTY even though ls on the mount point returns no files | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Nithya Balachandran <nbalacha> |
| Component: | distribute | Assignee: | Nithya Balachandran <nbalacha> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.10 | CC: | bugs, rtalur |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | glusterfs-3.10.2 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1442724 | Environment: | |
| Last Closed: | 2017-05-31 20:44:48 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1442724 | ||
| Bug Blocks: | 1442603 | ||
|
Description
Nithya Balachandran
2017-04-22 03:34:24 UTC
REVIEW: https://review.gluster.org/17102 (cluster/dht: rm -rf fails if dir has stale linkto files) posted (#1) for review on release-3.10 by N Balachandran (nbalacha) REVIEW: https://review.gluster.org/17102 (cluster/dht: rm -rf fails if dir has stale linkto files) posted (#2) for review on release-3.10 by N Balachandran (nbalacha) COMMIT: https://review.gluster.org/17102 committed in release-3.10 by Raghavendra Talur (rtalur) ------ commit 6577b84b0540c2210978e2d250c30f52914b5401 Author: N Balachandran <nbalacha> 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> > Reviewed-on: https://review.gluster.org/17065 > Smoke: Gluster Build System <jenkins.org> > NetBSD-regression: NetBSD Build System <jenkins.org> > CentOS-regression: Gluster Build System <jenkins.org> > Reviewed-by: Raghavendra G <rgowdapp> (cherry picked from commit e5f9ba138571bd18226462c49ff6a55f5c3ed3a4) Change-Id: I447f2d193de4bd8ac16e4541c6b919d22250e39e BUG: 1444540 Signed-off-by: N Balachandran <nbalacha> Reviewed-on: https://review.gluster.org/17102 NetBSD-regression: NetBSD Build System <jenkins.org> Smoke: Gluster Build System <jenkins.org> CentOS-regression: Gluster Build System <jenkins.org> Reviewed-by: Raghavendra G <rgowdapp> This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.10.2, please open a new bug report. |