dm-target.c (e3900e74f26fc924c8e9e2a922bd40369b0bb517) dm-target.c (55a62eef8d1b50ceff3b7bf46851103bdcc7e5b0)
1/*
2 * Copyright (C) 2001 Sistina Software (UK) Limited
3 *
4 * This file is released under the GPL.
5 */
6
7#include "dm.h"
8

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

111 * io-err: always fails an io, useful for bringing
112 * up LVs that have holes in them.
113 */
114static int io_err_ctr(struct dm_target *tt, unsigned int argc, char **args)
115{
116 /*
117 * Return error for discards instead of -EOPNOTSUPP
118 */
1/*
2 * Copyright (C) 2001 Sistina Software (UK) Limited
3 *
4 * This file is released under the GPL.
5 */
6
7#include "dm.h"
8

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

111 * io-err: always fails an io, useful for bringing
112 * up LVs that have holes in them.
113 */
114static int io_err_ctr(struct dm_target *tt, unsigned int argc, char **args)
115{
116 /*
117 * Return error for discards instead of -EOPNOTSUPP
118 */
119 tt->num_discard_requests = 1;
119 tt->num_discard_bios = 1;
120
121 return 0;
122}
123
124static void io_err_dtr(struct dm_target *tt)
125{
126 /* empty */
127}

--- 26 unchanged lines hidden ---
120
121 return 0;
122}
123
124static void io_err_dtr(struct dm_target *tt)
125{
126 /* empty */
127}

--- 26 unchanged lines hidden ---