Lines Matching refs:statmount

15 #include "statmount.h"
37 static struct statmount *statmount_alloc(uint64_t mnt_id, uint64_t mask, unsigned int flags)
40 struct statmount *buf = NULL, *tmp = alloca(bufsize);
45 ret = statmount(mnt_id, 0, mask, tmp, bufsize, flags);
238 struct statmount sm;
241 ret = statmount(root_id, 0, 0, &sm, sizeof(sm), 0);
243 ksft_test_result_fail("statmount zero mask: %s\n",
258 ksft_test_result_pass("statmount zero mask\n");
263 struct statmount sm;
267 ret = statmount(root_id, 0, mask, &sm, sizeof(sm), 0);
269 ksft_test_result_fail("statmount mnt basic: %s\n",
279 ksft_test_result_skip("statmount mnt basic unavailable\n");
315 ksft_test_result_pass("statmount mnt basic\n");
321 struct statmount sm;
327 ret = statmount(root_id, 0, mask, &sm, sizeof(sm), 0);
329 ksft_test_result_fail("statmount sb basic: %s\n",
339 ksft_test_result_skip("statmount sb basic unavailable\n");
372 ksft_test_result_pass("statmount sb basic\n");
377 struct statmount *sm;
381 ksft_test_result_fail("statmount mount point: %s\n",
391 ksft_test_result_pass("statmount mount point\n");
398 struct statmount *sm;
407 ksft_test_result_fail("statmount mount root: %s\n",
423 ksft_test_result_pass("statmount mount root\n");
430 struct statmount *sm;
436 ksft_test_result_fail("statmount fs type: %s\n",
448 ksft_test_result_pass("statmount fs type\n");
454 struct statmount *sm;
462 ksft_test_result_fail("statmount mnt opts: %s\n",
523 ksft_test_result_pass("statmount mount options\n");
536 struct statmount *sm;
543 ksft_test_result_fail("statmount %s: %s\n", name,
553 ksft_test_result_skip("statmount %s unavailable\n", name);
570 ret = statmount(root_id, 0, mask, sm, exactsize, 0);
572 ksft_test_result_fail("statmount exact size: %s\n",
577 ret = statmount(root_id, 0, mask, sm, shortsize, 0);
584 ksft_test_result_pass("statmount string %s\n", name);
642 #define str_off(memb) (offsetof(struct statmount, memb) / sizeof(uint32_t))
653 ret = statmount(0, 0, 0, NULL, 0, 0);
656 ksft_exit_skip("statmount() syscall not supported\n");