MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / open

Method open

fs/extfs/extfs.cpp:1317–1323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1315 LOG_INFO(VALUE(total_read_cnt), VALUE(total_write_cnt));
1316 }
1317 photon::fs::IFile *open(const char *path, int flags, mode_t mode) override {
1318 ext2_file_t file = do_ext2fs_open_file(fs, path, flags, mode);
1319 if (!file) {
1320 return nullptr;
1321 }
1322 return new ExtFile(file, flags, this);
1323 }
1324 photon::fs::IFile *open(const char *path, int flags) override {
1325 return open(path, flags, 0666);
1326 }

Callers 2

new_fileFunction · 0.45
TEST_FFunction · 0.45

Calls 1

do_ext2fs_open_fileFunction · 0.85

Tested by 2

new_fileFunction · 0.36
TEST_FFunction · 0.36