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

Method syncfs

fs/extfs/extfs.cpp:1395–1402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1393 DO_EXT2FS(do_ext2fs_truncate(fs, path, length))
1394 }
1395 int syncfs() override {
1396 errcode_t ret = ext2fs_flush(fs);
1397 if (ret) {
1398 errno = -parse_extfs_error(fs, 0, ret);
1399 return -1;
1400 }
1401 return flush_buffer();
1402 }
1403 ssize_t getxattr(const char *path, const char *name, void *value, size_t size) override {
1404 DO_EXT2FS(do_ext2fs_getxattr(fs, path, name, value, size, 1));
1405 }

Callers 1

TEST_FFunction · 0.45

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.36