]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
libcephfs: ll_set_fscrypt_policy_v2 - use in->dirstat
authorMarcus Watts <mwatts@redhat.com>
Sat, 28 Jun 2025 00:56:05 +0000 (20:56 -0400)
committerChristopher Hoffman <choffman@redhat.com>
Wed, 5 Nov 2025 13:59:36 +0000 (13:59 +0000)
commite711a6ca003121dcd0fa3e92b0ba348d66f6ca53
tree5360ef7e58de22397bc81928aba8e90ede8aac3b
parent53e88865d6e64c8023a8bfdb3e8d4fa816289f1e
libcephfs: ll_set_fscrypt_policy_v2 - use in->dirstat

Better check for empty direcotry.
It turns out in->dirstat contains a count of files and subdirectories
from a directory, so all we have to do is make sure that's valid.

Resolves: rhbz#2376757
Signed-off-by: Marcus Watts <mwatts@redhat.com>
(cherry picked from commit ba233f2dda3cf30c67b653b065e9ed47d42cb9d6)
src/client/Client.cc