Searched refs:O_ADMIN (Results 1 - 6 of 6) sorted by relevance

/fuchsia/zircon/system/utest/fs-management/
H A Dfs-management.cpp130 int mountfd = open(mount_path, O_RDONLY | O_DIRECTORY | O_ADMIN);
159 int mountfd = open(mount_path, O_RDONLY | O_DIRECTORY | O_ADMIN);
190 // Try mounting without O_ADMIN (which is disallowed)
201 mountfd = open(mount_path, O_RDONLY | O_DIRECTORY | O_ADMIN);
218 // WITHOUT O_ADMIN
227 // Let's try unmounting the filesystem WITHOUT O_ADMIN
238 // When we unmount with an O_ADMIN handle, it should successfully detach.
263 int mountfd = open(parent_path, O_RDONLY | O_DIRECTORY | O_ADMIN);
299 // Try re-opening the root without O_ADMIN. We shouldn't be able to umount.
308 // Try opening a non-root directory without O_ADMIN
[all...]
/fuchsia/zircon/system/ulib/fs-management/
H A Dmount.cpp119 // Open the parent path as O_ADMIN, and sent the mkdir+mount command
136 unique_fd parent(open(parent_path, O_RDONLY | O_DIRECTORY | O_ADMIN));
340 unique_fd mount_point(open(mount_path, O_RDONLY | O_DIRECTORY | O_ADMIN));
369 unique_fd fd(open(mount_path, O_DIRECTORY | O_NOREMOTE | O_ADMIN));
/fuchsia/zircon/third_party/ulib/musl/include/
H A Dfcntl.h56 #define O_ADMIN 0x00000004 macro
/fuchsia/zircon/system/uapp/df/
H A Dmain.cpp173 // Try to open path with O_ADMIN so we can query for underlying block devices.
174 // If we fail, open directory without O_ADMIN. Block devices will not be returned.
178 fd.reset(open(dirs[i], O_RDONLY | O_ADMIN));
211 path = "Unknown; missing O_ADMIN";
/fuchsia/zircon/system/ulib/fdio/
H A Dunistd.c169 static_assert(O_ADMIN == ZX_FS_RIGHT_ADMIN, "Open Flag mismatch");
178 #define ZXIO_FS_MASK (O_PATH | O_ADMIN | O_CREAT | O_EXCL | O_TRUNC | \
/fuchsia/zircon/system/utest/blobfs/
H A Dblobfs.cpp2038 fbl::unique_fd dirfd(open(MOUNT_PATH "/.", O_RDONLY | O_ADMIN));

Completed in 97 milliseconds