Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 209168
b: refs/heads/master
c: f8facb6
h: refs/heads/master
v: v3
  • Loading branch information
Mike Snitzer authored and Alasdair G Kergon committed Aug 12, 2010
1 parent 8151a19 commit 84a4650
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b441a262e7d1c56fbe21794c91d7a9c83809113f
refs/heads/master: f8facb61b5095488a4d78fa78116ef4f4b82bc4d
5 changes: 5 additions & 0 deletions trunk/drivers/md/dm-zero.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ static int zero_ctr(struct dm_target *ti, unsigned int argc, char **argv)
return -EINVAL;
}

/*
* Silently drop discards, avoiding -EOPNOTSUPP.
*/
ti->num_discard_requests = 1;

return 0;
}

Expand Down

0 comments on commit 84a4650

Please sign in to comment.