Lines Matching refs:perm
35 uint64_t perm, uint64_t shared_perm, in open_image() argument
46 if (blk_set_perm(blk, perm, shared_perm, errp)) { in open_image()
80 uint64_t perm, shared_perm; in test_image_locking_basic() local
85 perm = BLK_PERM_WRITE | BLK_PERM_CONSISTENT_READ; in test_image_locking_basic()
87 blk1 = open_image(img_path, perm, shared_perm, &error_abort); in test_image_locking_basic()
90 check_locked_bytes(fd, perm, ~shared_perm); in test_image_locking_basic()
93 blk2 = open_image(img_path, perm | BLK_PERM_RESIZE, shared_perm, NULL); in test_image_locking_basic()
95 check_locked_bytes(fd, perm | BLK_PERM_RESIZE, ~shared_perm); in test_image_locking_basic()
98 blk3 = open_image(img_path, perm, BLK_PERM_WRITE_UNCHANGED, NULL); in test_image_locking_basic()
104 check_locked_bytes(fd, perm, ~shared_perm); in test_image_locking_basic()
110 blk3 = open_image(img_path, perm, BLK_PERM_WRITE_UNCHANGED, &error_abort); in test_image_locking_basic()
121 uint64_t perm, shared_perm; in test_set_perm_abort() local
126 perm = BLK_PERM_WRITE | BLK_PERM_CONSISTENT_READ; in test_set_perm_abort()
128 blk1 = open_image(img_path, perm, shared_perm, &error_abort); in test_set_perm_abort()
131 blk2 = open_image(img_path, perm, shared_perm, &error_abort); in test_set_perm_abort()
134 check_locked_bytes(fd, perm, ~shared_perm); in test_set_perm_abort()
137 r = blk_set_perm(blk2, perm | BLK_PERM_RESIZE, BLK_PERM_WRITE_UNCHANGED, in test_set_perm_abort()
140 check_locked_bytes(fd, perm, ~shared_perm); in test_set_perm_abort()