dm-flakey.c (cf40a76e7d5874bb25f4404eecc58a2e033af885) | dm-flakey.c (7690e25302dc7d0cd42b349e746fe44b44a94f2b) |
---|---|
1/* 2 * Copyright (C) 2003 Sistina Software (UK) Limited. 3 * Copyright (C) 2004, 2010-2011 Red Hat, Inc. All rights reserved. 4 * 5 * This file is released under the GPL. 6 */ 7 8#include <linux/device-mapper.h> --- 56 unchanged lines hidden (view full) --- 65 r = dm_read_arg_group(_args, as, &argc, &ti->error); 66 if (r) 67 return r; 68 69 while (argc) { 70 arg_name = dm_shift_arg(as); 71 argc--; 72 | 1/* 2 * Copyright (C) 2003 Sistina Software (UK) Limited. 3 * Copyright (C) 2004, 2010-2011 Red Hat, Inc. All rights reserved. 4 * 5 * This file is released under the GPL. 6 */ 7 8#include <linux/device-mapper.h> --- 56 unchanged lines hidden (view full) --- 65 r = dm_read_arg_group(_args, as, &argc, &ti->error); 66 if (r) 67 return r; 68 69 while (argc) { 70 arg_name = dm_shift_arg(as); 71 argc--; 72 |
73 if (!arg_name) { 74 ti->error = "Insufficient feature arguments"; 75 return -EINVAL; 76 } 77 |
|
73 /* 74 * drop_writes 75 */ 76 if (!strcasecmp(arg_name, "drop_writes")) { 77 if (test_and_set_bit(DROP_WRITES, &fc->flags)) { 78 ti->error = "Feature drop_writes duplicated"; 79 return -EINVAL; 80 } else if (test_bit(ERROR_WRITES, &fc->flags)) { --- 418 unchanged lines hidden --- | 78 /* 79 * drop_writes 80 */ 81 if (!strcasecmp(arg_name, "drop_writes")) { 82 if (test_and_set_bit(DROP_WRITES, &fc->flags)) { 83 ti->error = "Feature drop_writes duplicated"; 84 return -EINVAL; 85 } else if (test_bit(ERROR_WRITES, &fc->flags)) { --- 418 unchanged lines hidden --- |