Lines Matching refs:mask
36 static struct statmount *statmount_alloc(uint64_t mnt_id, uint64_t mask, unsigned int flags) in statmount_alloc() argument
44 ret = statmount(mnt_id, 0, mask, tmp, bufsize, flags); in statmount_alloc()
86 static uint64_t get_mnt_id(const char *name, const char *path, uint64_t mask) in get_mnt_id() argument
91 ret = statx(AT_FDCWD, path, 0, mask, &sx); in get_mnt_id()
94 mask & STATX_MNT_ID_UNIQUE ? "unique" : "old", in get_mnt_id()
96 if (!(sx.stx_mask & mask)) in get_mnt_id()
98 mask & STATX_MNT_ID_UNIQUE ? "unique" : "old", in get_mnt_id()
251 if (sm.mask != 0) { in test_statmount_zero_mask()
253 (unsigned long long) sm.mask); in test_statmount_zero_mask()
264 uint64_t mask = STATMOUNT_MNT_BASIC; in test_statmount_mnt_basic() local
266 ret = statmount(root_id, 0, mask, &sm, sizeof(sm), 0); in test_statmount_mnt_basic()
277 if (sm.mask != mask) { in test_statmount_mnt_basic()
322 uint64_t mask = STATMOUNT_SB_BASIC; in test_statmount_sb_basic() local
326 ret = statmount(root_id, 0, mask, &sm, sizeof(sm), 0); in test_statmount_sb_basic()
337 if (sm.mask != mask) { in test_statmount_sb_basic()
385 if (!(sm->mask & STATMOUNT_MNT_POINT)) { in test_statmount_mnt_point()
414 if (!(sm->mask & STATMOUNT_MNT_ROOT)) { in test_statmount_mnt_root()
447 if (!(sm->mask & STATMOUNT_FS_TYPE)) { in test_statmount_fs_type()
478 if (!(sm->mask & STATMOUNT_MNT_BASIC)) { in test_statmount_mnt_opts()
533 if (sm->mask & STATMOUNT_MNT_OPTS) in test_statmount_mnt_opts()
553 static void test_statmount_string(uint64_t mask, size_t off, const char *name) in test_statmount_string() argument
560 sm = statmount_alloc(root_id, mask, 0); in test_statmount_string()
571 if (sm->mask != mask) { in test_statmount_string()
589 ret = statmount(root_id, 0, mask, sm, exactsize, 0); in test_statmount_string()
596 ret = statmount(root_id, 0, mask, sm, shortsize, 0); in test_statmount_string()