block.c (f75d15231e56cb0f2bafe19faf1229c459a60731) | block.c (0b3ca76e52f025caf234b77d471465e983a711d0) |
---|---|
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 --- 1729 unchanged lines hidden (view full) --- 1738} 1739 1740static void bdrv_child_perm(BlockDriverState *bs, BlockDriverState *child_bs, 1741 BdrvChild *c, const BdrvChildRole *role, 1742 BlockReopenQueue *reopen_queue, 1743 uint64_t parent_perm, uint64_t parent_shared, 1744 uint64_t *nperm, uint64_t *nshared) 1745{ | 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 --- 1729 unchanged lines hidden (view full) --- 1738} 1739 1740static void bdrv_child_perm(BlockDriverState *bs, BlockDriverState *child_bs, 1741 BdrvChild *c, const BdrvChildRole *role, 1742 BlockReopenQueue *reopen_queue, 1743 uint64_t parent_perm, uint64_t parent_shared, 1744 uint64_t *nperm, uint64_t *nshared) 1745{ |
1746 if (bs->drv && bs->drv->bdrv_child_perm) { 1747 bs->drv->bdrv_child_perm(bs, c, role, reopen_queue, 1748 parent_perm, parent_shared, 1749 nperm, nshared); 1750 } | 1746 assert(bs->drv && bs->drv->bdrv_child_perm); 1747 bs->drv->bdrv_child_perm(bs, c, role, reopen_queue, 1748 parent_perm, parent_shared, 1749 nperm, nshared); |
1751 /* TODO Take force_share from reopen_queue */ 1752 if (child_bs && child_bs->force_share) { 1753 *nshared = BLK_PERM_ALL; 1754 } 1755} 1756 1757/* 1758 * Check whether permissions on this node can be changed in a way that --- 4473 unchanged lines hidden --- | 1750 /* TODO Take force_share from reopen_queue */ 1751 if (child_bs && child_bs->force_share) { 1752 *nshared = BLK_PERM_ALL; 1753 } 1754} 1755 1756/* 1757 * Check whether permissions on this node can be changed in a way that --- 4473 unchanged lines hidden --- |