dm-target.c (11e4afb49b7fa1fc8e1ffd850c1806dd86a08204) dm-target.c (38e1b257fd7b4f3eee667d29a5e44ec15e253c1c)
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

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

108}
109
110/*
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{
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

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

108}
109
110/*
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;
120
116 return 0;
117}
118
119static void io_err_dtr(struct dm_target *tt)
120{
121 /* empty */
122}
123

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

--- 26 unchanged lines hidden ---