* [PATCH] lsblk: permit option --exclude more than once
@ 2012-06-15 13:42 Bernhard Voelker
2012-06-19 9:07 ` Karel Zak
0 siblings, 1 reply; 2+ messages in thread
From: Bernhard Voelker @ 2012-06-15 13:42 UTC (permalink / raw)
To: util-linux@vger.kernel.org
>From 03746408a33cfc393370caabbe8da1bdfef5f484 Mon Sep 17 00:00:00 2001
From: Bernhard Voelker <mail@bernhard-voelker.de>
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@bernhard-voelker.de>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] lsblk: permit option --exclude more than once
2012-06-15 13:42 [PATCH] lsblk: permit option --exclude more than once Bernhard Voelker
@ 2012-06-19 9:07 ` Karel Zak
0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2012-06-19 9:07 UTC (permalink / raw)
To: Bernhard Voelker; +Cc: util-linux@vger.kernel.org
On Fri, Jun 15, 2012 at 03:42:12PM +0200, Bernhard Voelker wrote:
> misc-utils/lsblk.c | 6 ++----
> 1 files changed, 2 insertions(+), 4 deletions(-)
Applied, thanks.
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-06-19 9:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-15 13:42 [PATCH] lsblk: permit option --exclude more than once Bernhard Voelker
2012-06-19 9:07 ` Karel Zak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).