MCPcopy Create free account
hub / github.com/ceph/ceph / is_file

Method is_file

src/client/Inode.h:204–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202 bool is_symlink() const { return (mode & S_IFMT) == S_IFLNK; }
203 bool is_dir() const { return (mode & S_IFMT) == S_IFDIR; }
204 bool is_file() const { return (mode & S_IFMT) == S_IFREG; }
205
206 // use i_flags as 1 << 14 will overlap with other mode bits.
207 bool is_encrypted() const { return (i_flags & S_ENCRYPTED) == S_ENCRYPTED; }

Callers 11

_get_vxattrsMethod · 0.45
clear_suid_sgidMethod · 0.45
check_pool_permMethod · 0.45
fcopyfileMethod · 0.45
test_one_file_nodestMethod · 0.45
test_one_fileMethod · 0.45
test_one_file_destdirMethod · 0.45
test_one_file_set_uidMethod · 0.45

Calls

no outgoing calls

Tested by 6

test_one_file_nodestMethod · 0.36
test_one_fileMethod · 0.36
test_one_file_destdirMethod · 0.36
test_one_file_set_uidMethod · 0.36