block_int.h (33a610c398603efafd954c706ba07850835a5098) block_int.h (6a1b9ee152101868082dbf24ccb683af0431c85b)
1/*
2 * QEMU System Emulator block driver
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 858 unchanged lines hidden (view full) ---

867
868int bdrv_child_check_perm(BdrvChild *c, uint64_t perm, uint64_t shared,
869 Error **errp);
870void bdrv_child_set_perm(BdrvChild *c, uint64_t perm, uint64_t shared);
871void bdrv_child_abort_perm_update(BdrvChild *c);
872int bdrv_child_try_set_perm(BdrvChild *c, uint64_t perm, uint64_t shared,
873 Error **errp);
874
1/*
2 * QEMU System Emulator block driver
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 858 unchanged lines hidden (view full) ---

867
868int bdrv_child_check_perm(BdrvChild *c, uint64_t perm, uint64_t shared,
869 Error **errp);
870void bdrv_child_set_perm(BdrvChild *c, uint64_t perm, uint64_t shared);
871void bdrv_child_abort_perm_update(BdrvChild *c);
872int bdrv_child_try_set_perm(BdrvChild *c, uint64_t perm, uint64_t shared,
873 Error **errp);
874
875/* Default implementation for BlockDriver.bdrv_child_perm() that can be used by
876 * block filters: Forward CONSISTENT_READ, WRITE, WRITE_UNCHANGED and RESIZE to
877 * all children */
878void bdrv_filter_default_perms(BlockDriverState *bs, BdrvChild *c,
879 const BdrvChildRole *role,
880 uint64_t perm, uint64_t shared,
881 uint64_t *nperm, uint64_t *nshared);
875
882
883
876const char *bdrv_get_parent_name(const BlockDriverState *bs);
877void blk_dev_change_media_cb(BlockBackend *blk, bool load);
878bool blk_dev_has_removable_media(BlockBackend *blk);
879bool blk_dev_has_tray(BlockBackend *blk);
880void blk_dev_eject_request(BlockBackend *blk, bool force);
881bool blk_dev_is_tray_open(BlockBackend *blk);
882bool blk_dev_is_medium_locked(BlockBackend *blk);
883

--- 12 unchanged lines hidden ---
884const char *bdrv_get_parent_name(const BlockDriverState *bs);
885void blk_dev_change_media_cb(BlockBackend *blk, bool load);
886bool blk_dev_has_removable_media(BlockBackend *blk);
887bool blk_dev_has_tray(BlockBackend *blk);
888void blk_dev_eject_request(BlockBackend *blk, bool force);
889bool blk_dev_is_tray_open(BlockBackend *blk);
890bool blk_dev_is_medium_locked(BlockBackend *blk);
891

--- 12 unchanged lines hidden ---