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

Method mknod

src/client/Client.cc:8203–8216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8201}
8202
8203int Client::mknod(const char *relpath, mode_t mode, const UserPerm& perms, dev_t rdev)
8204{
8205 RWRef_t mref_reader(mount_state, CLIENT_MOUNTING);
8206 if (!mref_reader.is_state_satisfied())
8207 return -ENOTCONN;
8208
8209 tout(cct) << __func__ << std::endl;
8210 tout(cct) << relpath << std::endl;
8211 tout(cct) << mode << std::endl;
8212 tout(cct) << rdev << std::endl;
8213
8214 std::scoped_lock lock(client_lock);
8215 return _mknod(cwd.get(), relpath, mode, rdev, perms);
8216}
8217
8218// symlinks
8219

Callers 11

ceph_mknodFunction · 0.80
runMethod · 0.80
play_traceMethod · 0.80
make_dirsMethod · 0.80
make_filesMethod · 0.80
link_testMethod · 0.80
create_sharedMethod · 0.80
random_walkMethod · 0.80
fooMethod · 0.80
thrash_linksMethod · 0.80
test_mknodFunction · 0.80

Calls 2

is_state_satisfiedMethod · 0.80
getMethod · 0.45

Tested by 1

test_mknodFunction · 0.64