dm-linear.c (907bc6c7fc7071b00083fc11e510e47dd93df45d) | dm-linear.c (8215d6ec5fee1e76545decea2cd73717efb5cb42) |
---|---|
1/* 2 * Copyright (C) 2001-2003 Sistina Software (UK) Limited. 3 * 4 * This file is released under the GPL. 5 */ 6 7#include "dm.h" 8#include <linux/module.h> --- 33 unchanged lines hidden (view full) --- 42 } 43 44 if (sscanf(argv[1], "%llu", &tmp) != 1) { 45 ti->error = "dm-linear: Invalid device sector"; 46 goto bad; 47 } 48 lc->start = tmp; 49 | 1/* 2 * Copyright (C) 2001-2003 Sistina Software (UK) Limited. 3 * 4 * This file is released under the GPL. 5 */ 6 7#include "dm.h" 8#include <linux/module.h> --- 33 unchanged lines hidden (view full) --- 42 } 43 44 if (sscanf(argv[1], "%llu", &tmp) != 1) { 45 ti->error = "dm-linear: Invalid device sector"; 46 goto bad; 47 } 48 lc->start = tmp; 49 |
50 if (dm_get_device(ti, argv[0], lc->start, ti->len, 51 dm_table_get_mode(ti->table), &lc->dev)) { | 50 if (dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &lc->dev)) { |
52 ti->error = "dm-linear: Device lookup failed"; 53 goto bad; 54 } 55 56 ti->num_flush_requests = 1; 57 ti->private = lc; 58 return 0; 59 --- 112 unchanged lines hidden --- | 51 ti->error = "dm-linear: Device lookup failed"; 52 goto bad; 53 } 54 55 ti->num_flush_requests = 1; 56 ti->private = lc; 57 return 0; 58 --- 112 unchanged lines hidden --- |