|
|
|
[PATCH] lsblk: permit option --exclude more than once | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
>From 03746408a33cfc393370caabbe8da1bdfef5f484 Mon Sep 17 00:00:00 2001
From: Bernhard Voelker <mail@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 15 Jun 2012 15:40:35 +0200
Subject: [PATCH] lsblk: permit option --exclude more than once
Previously, `lsblk -e 8 -e 11` did not exlude maj:8 as requested.
Signed-off-by: Bernhard Voelker <mail@xxxxxxxxxxxxxxxxxxx>
---
misc-utils/lsblk.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c
index 24fb44f..bd5e6b7 100644
--- a/misc-utils/lsblk.c
+++ b/misc-utils/lsblk.c
@@ -153,8 +153,8 @@ struct lsblk *lsblk; /* global handler */
int columns[NCOLS];/* enabled columns */
int ncolumns; /* number of enabled columns */
-int excludes[256];
-size_t nexcludes;
+static int excludes[256];
+static size_t nexcludes;
static struct libmnt_table *mtab, *swaps;
static struct libmnt_cache *mntcache;
@@ -1080,8 +1080,6 @@ leave:
static void parse_excludes(const char *str)
{
- nexcludes = 0;
-
while (str && *str) {
char *end = NULL;
unsigned long n;
--
1.7.7
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Site Home] [Netdev] [Ethernet Bridging] [Linux Wireless] [Kernel Newbies] [Memory] [Security] [Linux for Hams] [Netfilter] [Bugtraq] [Rubini] [Photo] [Yosemite] [Yosemite News] [MIPS Linux] [ARM Linux] [Linux RAID] [Linux Admin] [Samba] [Video 4 Linux] [Linux Resources]