Skip to content
Commit 12451491 authored by Sage Weil's avatar Sage Weil
Browse files

ceph: don't improperly set dir complete when holding EXCL cap



If we hold the EXCL cap, we cannot trust the dir stats from the MDS (num
files, subdirs) and must not incorrectly conclude that the directory is
empty.  If we do, we get can bad results from lookup (bad ENOENT) and
bad readdir results.

Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent 679ceace
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment