blkdebug.c (f4d8cf148e43d942ef1202071e0cd66ce40322e0) blkdebug.c (bd86fb990cfedc50d9705b8ed31d183f01942035)
1/*
2 * Block protocol for I/O error injection
3 *
4 * Copyright (C) 2016-2017 Red Hat, Inc.
5 * Copyright (c) 2010 Kevin Wolf <kwolf@redhat.com>
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

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

988
989static int blkdebug_reopen_prepare(BDRVReopenState *reopen_state,
990 BlockReopenQueue *queue, Error **errp)
991{
992 return 0;
993}
994
995static void blkdebug_child_perm(BlockDriverState *bs, BdrvChild *c,
1/*
2 * Block protocol for I/O error injection
3 *
4 * Copyright (C) 2016-2017 Red Hat, Inc.
5 * Copyright (c) 2010 Kevin Wolf <kwolf@redhat.com>
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

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

988
989static int blkdebug_reopen_prepare(BDRVReopenState *reopen_state,
990 BlockReopenQueue *queue, Error **errp)
991{
992 return 0;
993}
994
995static void blkdebug_child_perm(BlockDriverState *bs, BdrvChild *c,
996 const BdrvChildRole *role,
996 const BdrvChildClass *child_class,
997 BlockReopenQueue *reopen_queue,
998 uint64_t perm, uint64_t shared,
999 uint64_t *nperm, uint64_t *nshared)
1000{
1001 BDRVBlkdebugState *s = bs->opaque;
1002
997 BlockReopenQueue *reopen_queue,
998 uint64_t perm, uint64_t shared,
999 uint64_t *nperm, uint64_t *nshared)
1000{
1001 BDRVBlkdebugState *s = bs->opaque;
1002
1003 bdrv_filter_default_perms(bs, c, role, reopen_queue, perm, shared,
1003 bdrv_filter_default_perms(bs, c, child_class, reopen_queue, perm, shared,
1004 nperm, nshared);
1005
1006 *nperm |= s->take_child_perms;
1007 *nshared &= ~s->unshare_child_perms;
1008}
1009
1010static const char *const blkdebug_strong_runtime_opts[] = {
1011 "config",

--- 51 unchanged lines hidden ---
1004 nperm, nshared);
1005
1006 *nperm |= s->take_child_perms;
1007 *nshared &= ~s->unshare_child_perms;
1008}
1009
1010static const char *const blkdebug_strong_runtime_opts[] = {
1011 "config",

--- 51 unchanged lines hidden ---