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

Method create_shared

src/client/SyntheticClient.cc:1917–1929  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1915
1916
1917int SyntheticClient::create_shared(int num)
1918{
1919 // files
1920 UserPerm perms = client->pick_my_perms();
1921 char d[255];
1922 client->mkdir("test", 0755, perms);
1923 for (int n=0; n<num; n++) {
1924 snprintf(d, sizeof(d), "test/file.%d", n);
1925 client->mknod(d, 0644, perms);
1926 }
1927
1928 return 0;
1929}
1930
1931int SyntheticClient::open_shared(int num, int count)
1932{

Callers

nothing calls this directly

Calls 3

pick_my_permsMethod · 0.80
mknodMethod · 0.80
mkdirMethod · 0.45

Tested by

no test coverage detected