Lines Matching full:sm
237 struct statmount sm; in test_statmount_zero_mask() local
240 ret = statmount(root_id, 0, 0, &sm, sizeof(sm), 0); in test_statmount_zero_mask()
246 if (sm.size != sizeof(sm)) { in test_statmount_zero_mask()
248 sm.size, (uint32_t) sizeof(sm)); in test_statmount_zero_mask()
251 if (sm.mask != 0) { in test_statmount_zero_mask()
253 (unsigned long long) sm.mask); in test_statmount_zero_mask()
262 struct statmount sm; in test_statmount_mnt_basic() local
266 ret = statmount(root_id, 0, mask, &sm, sizeof(sm), 0); in test_statmount_mnt_basic()
272 if (sm.size != sizeof(sm)) { in test_statmount_mnt_basic()
274 sm.size, (uint32_t) sizeof(sm)); in test_statmount_mnt_basic()
277 if (sm.mask != mask) { in test_statmount_mnt_basic()
282 if (sm.mnt_id != root_id) { in test_statmount_mnt_basic()
284 (unsigned long long) sm.mnt_id, in test_statmount_mnt_basic()
289 if (sm.mnt_id_old != old_root_id) { in test_statmount_mnt_basic()
291 sm.mnt_id_old, old_root_id); in test_statmount_mnt_basic()
295 if (sm.mnt_parent_id != parent_id) { in test_statmount_mnt_basic()
297 (unsigned long long) sm.mnt_parent_id, in test_statmount_mnt_basic()
302 if (sm.mnt_parent_id_old != old_parent_id) { in test_statmount_mnt_basic()
304 sm.mnt_parent_id_old, old_parent_id); in test_statmount_mnt_basic()
308 if (sm.mnt_propagation != MS_PRIVATE) { in test_statmount_mnt_basic()
310 (unsigned long long) sm.mnt_propagation); in test_statmount_mnt_basic()
320 struct statmount sm; in test_statmount_sb_basic() local
326 ret = statmount(root_id, 0, mask, &sm, sizeof(sm), 0); in test_statmount_sb_basic()
332 if (sm.size != sizeof(sm)) { in test_statmount_sb_basic()
334 sm.size, (uint32_t) sizeof(sm)); in test_statmount_sb_basic()
337 if (sm.mask != mask) { in test_statmount_sb_basic()
349 if (sm.sb_dev_major != sx.stx_dev_major || in test_statmount_sb_basic()
350 sm.sb_dev_minor != sx.stx_dev_minor) { in test_statmount_sb_basic()
352 sm.sb_dev_major, sm.sb_dev_minor, in test_statmount_sb_basic()
364 if (sm.sb_magic != sf.f_type) { in test_statmount_sb_basic()
366 (unsigned long long) sm.sb_magic, in test_statmount_sb_basic()
376 struct statmount *sm; in test_statmount_mnt_point() local
378 sm = statmount_alloc(root_id, STATMOUNT_MNT_POINT, 0); in test_statmount_mnt_point()
379 if (!sm) { in test_statmount_mnt_point()
385 if (!(sm->mask & STATMOUNT_MNT_POINT)) { in test_statmount_mnt_point()
389 if (strcmp(sm->str + sm->mnt_point, "/") != 0) { in test_statmount_mnt_point()
391 sm->str + sm->mnt_point); in test_statmount_mnt_point()
396 free(sm); in test_statmount_mnt_point()
401 struct statmount *sm; in test_statmount_mnt_root() local
408 sm = statmount_alloc(root_id, STATMOUNT_MNT_ROOT, 0); in test_statmount_mnt_root()
409 if (!sm) { in test_statmount_mnt_root()
414 if (!(sm->mask & STATMOUNT_MNT_ROOT)) { in test_statmount_mnt_root()
418 mnt_root = sm->str + sm->mnt_root; in test_statmount_mnt_root()
432 free(sm); in test_statmount_mnt_root()
437 struct statmount *sm; in test_statmount_fs_type() local
441 sm = statmount_alloc(root_id, STATMOUNT_FS_TYPE, 0); in test_statmount_fs_type()
442 if (!sm) { in test_statmount_fs_type()
447 if (!(sm->mask & STATMOUNT_FS_TYPE)) { in test_statmount_fs_type()
451 fs_type = sm->str + sm->fs_type; in test_statmount_fs_type()
460 free(sm); in test_statmount_fs_type()
465 struct statmount *sm; in test_statmount_mnt_opts() local
470 sm = statmount_alloc(root_id, STATMOUNT_MNT_BASIC | STATMOUNT_MNT_OPTS, in test_statmount_mnt_opts()
472 if (!sm) { in test_statmount_mnt_opts()
478 if (!(sm->mask & STATMOUNT_MNT_BASIC)) { in test_statmount_mnt_opts()
489 if (old_mnt_id != sm->mnt_id_old) in test_statmount_mnt_opts()
533 if (sm->mask & STATMOUNT_MNT_OPTS) in test_statmount_mnt_opts()
534 statmount_opts = sm->str + sm->mnt_opts; in test_statmount_mnt_opts()
543 free(sm); in test_statmount_mnt_opts()
549 free(sm); in test_statmount_mnt_opts()
555 struct statmount *sm; in test_statmount_string() local
560 sm = statmount_alloc(root_id, mask, 0); in test_statmount_string()
561 if (!sm) { in test_statmount_string()
566 if (sm->size < sizeof(*sm)) { in test_statmount_string()
568 sm->size, (uint32_t) sizeof(*sm)); in test_statmount_string()
571 if (sm->mask != mask) { in test_statmount_string()
575 len = sm->size - sizeof(*sm); in test_statmount_string()
576 start = ((uint32_t *) sm)[off]; in test_statmount_string()
583 if (!sm->str[i]) in test_statmount_string()
586 exactsize = sm->size; in test_statmount_string()
587 shortsize = sizeof(*sm) + i; 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()
605 free(sm); in test_statmount_string()