Lines Matching defs:shared
864 * @shared_perm_lock_bits is the mask of all permissions that are NOT shared.
972 "Failed to get shared \"%s\" lock",
2994 uint64_t perm, shared;
3034 shared = BLK_PERM_ALL & ~BLK_PERM_RESIZE;
3037 result = raw_apply_lock_bytes(NULL, fd, perm, ~shared, false, errp);
3043 result = raw_check_lock_bytes(fd, perm, shared, errp);
3861 static int raw_check_perm(BlockDriverState *bs, uint64_t perm, uint64_t shared,
3892 ret = raw_handle_perm_lock(bs, RAW_PL_PREPARE, perm, shared, errp);
3899 ret = raw_apply_lock_bytes(NULL, s->perm_change_fd, perm, ~shared,
3916 static void raw_set_perm(BlockDriverState *bs, uint64_t perm, uint64_t shared)
3929 raw_handle_perm_lock(bs, RAW_PL_COMMIT, perm, shared, NULL);
3931 s->shared_perm = shared;