17 lines
340 B
Plaintext
17 lines
340 B
Plaintext
// Get filesystem statistics
|
|
statfs(path, buf);
|
|
fstatfs(fd, buf);
|
|
|
|
// Commit filesystem caches to disk
|
|
sync();
|
|
|
|
// Commit caches of the filesystem containing the file referred to
|
|
// by the file descriptor `fd` to disk
|
|
syncfs(fd);
|
|
|
|
// Change root directory
|
|
chroot(path);
|
|
|
|
// Remove a watch from an inotify instance
|
|
inotify_rm_watch(fd, wd);
|