mirror of
https://github.com/ceph/ceph
synced 2025-02-23 02:57:21 +00:00
filestore: compare dentry->d_type against d_type constant
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
This commit is contained in:
parent
ea76ea502b
commit
5fc6d92180
@ -3665,7 +3665,7 @@ int FileStore::list_collections(vector<coll_t>& ls)
|
||||
if (!S_ISDIR(sb.st_mode)) {
|
||||
continue;
|
||||
}
|
||||
} else if (!S_ISDIR(de->d_type << 12)) {
|
||||
} else if (de->d_type != DT_DIR) {
|
||||
continue;
|
||||
}
|
||||
if (de->d_name[0] == '.' &&
|
||||
|
Loading…
Reference in New Issue
Block a user