dm-zero.c (e3900e74f26fc924c8e9e2a922bd40369b0bb517) dm-zero.c (55a62eef8d1b50ceff3b7bf46851103bdcc7e5b0)
1/*
2 * Copyright (C) 2003 Christophe Saout <christophe@saout.de>
3 *
4 * This file is released under the GPL.
5 */
6
7#include <linux/device-mapper.h>
8

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

20 if (argc != 0) {
21 ti->error = "No arguments required";
22 return -EINVAL;
23 }
24
25 /*
26 * Silently drop discards, avoiding -EOPNOTSUPP.
27 */
1/*
2 * Copyright (C) 2003 Christophe Saout <christophe@saout.de>
3 *
4 * This file is released under the GPL.
5 */
6
7#include <linux/device-mapper.h>
8

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

20 if (argc != 0) {
21 ti->error = "No arguments required";
22 return -EINVAL;
23 }
24
25 /*
26 * Silently drop discards, avoiding -EOPNOTSUPP.
27 */
28 ti->num_discard_requests = 1;
28 ti->num_discard_bios = 1;
29
30 return 0;
31}
32
33/*
34 * Return zeros only on reads
35 */
36static int zero_map(struct dm_target *ti, struct bio *bio)

--- 48 unchanged lines hidden ---
29
30 return 0;
31}
32
33/*
34 * Return zeros only on reads
35 */
36static int zero_map(struct dm_target *ti, struct bio *bio)

--- 48 unchanged lines hidden ---