diff options
author | N Balachandran <nbalacha@redhat.com> | 2017-04-17 15:21:20 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2017-04-21 01:49:41 -0400 |
commit | e5f9ba138571bd18226462c49ff6a55f5c3ed3a4 (patch) | |
tree | af1e04f55a51082d5b27e7851648553073a7aff0 /xlators/debug | |
parent | 799a2ff8299db6d6dc75f1533f4bd5a3bb72164d (diff) |
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.
Change-Id: I447f2d193de4bd8ac16e4541c6b919d22250e39e
BUG: 1442724
Signed-off-by: N Balachandran <nbalacha@redhat.com>
Reviewed-on: https://review.gluster.org/17065
Smoke: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators/debug')
0 files changed, 0 insertions, 0 deletions