FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Device-mapper Development

 
 
LinkBack Thread Tools
 
Old 11-26-2007, 02:20 PM
Guido Guenther
 
Default kpartx: remove unused "-n" code

Signed-Off-By: Guido Guenther <agx@sigxcpu.org>

diff --git a/kpartx/kpartx.c b/kpartx/kpartx.c
index 6d64e30..554f742 100644
--- a/kpartx/kpartx.c
+++ b/kpartx/kpartx.c
@@ -83,7 +83,7 @@ initpts(void)
addpts("sun", read_sun_pt);
}

-static char short_opts[] = "ladgvnp:t:";
+static char short_opts[] = "ladgvp:t:";

/* Used in gpt.c */
int force_gpt=0;
@@ -189,8 +189,7 @@ main(int argc, char **argv){
struct slice all;
struct pt *ptp;
enum action what = LIST;
- char *p, *type, *diskdevice, *device, *progname;
- int lower, upper;
+ char *type, *diskdevice, *device, *progname;
int verbose = 0;
char partname[PARTNAME_SIZE], params[PARTNAME_SIZE + 16];
char * loopdev = NULL;
@@ -204,7 +203,6 @@ main(int argc, char **argv){
initpts();
init_crc32();

- lower = upper = 0;
type = device = diskdevice = NULL;
memset(&all, 0, sizeof(all));
memset(&partname, 0, sizeof(partname));
@@ -241,14 +239,6 @@ main(int argc, char **argv){
case 'v':
verbose = 1;
break;
- case 'n':
- p = optarg;
- lower = atoi(p);
- if ((p[1] == '-') && p[2])
- upper = atoi(p+2);
- else
- upper = lower;
- break;
case 'p':
delim = optarg;
break;
@@ -333,8 +323,6 @@ main(int argc, char **argv){
perror(device);
exit(1);
}
- if (!lower)
- lower = 1;

/* add/remove partitions to the kernel devmapper tables */
for (i = 0; i < ptct; i++) {

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 

Thread Tools




All times are GMT. The time now is 03:11 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org