bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 4/5] Removed the ``add'' and ``remove'' options


From: Sergiu Ivanov
Subject: [PATCH 4/5] Removed the ``add'' and ``remove'' options
Date: Tue, 26 May 2009 23:31:56 +0300

diff --git a/options.c b/options.c
index c03676d..beed9f4 100644
--- a/options.c
+++ b/options.c
@@ -58,10 +58,10 @@ static const struct argp_option argp_common_options[] =
       "Set the priority for the following filesystem to VALUE", 1},
     { OPT_LONG_PATTERN, OPT_PATTERN, "PATTERN", 0,
       "add only nodes of the underlying filesystem matching pattern", 1},
-    { OPT_LONG_REMOVE, OPT_REMOVE, 0, 0,
+    /*    { OPT_LONG_REMOVE, OPT_REMOVE, 0, 0,
       "remove the following filesystem", 1 },
     { OPT_LONG_ADD, OPT_ADD, 0, 0,
-      "add the following filesystem (Default)", 1 },
+    "add the following filesystem (Default)", 1 },*/
     { 0 }
   };

@@ -102,13 +102,15 @@ argp_parse_common_options (int key, char *arg,
struct argp_state *state)
       ncache_size = strtol (arg, NULL, 10);
       break;

-    case OPT_ADD:              /* --add */
+      /* --add */
+      /*case OPT_ADD:          
       ulfs_mode = ULFS_MODE_ADD;
-      break;
+      break;*/

-    case OPT_REMOVE:           /* --remove  */
+      /* --remove  */
+      /*case OPT_REMOVE:
       ulfs_mode = ULFS_MODE_REMOVE;
-      break;
+      break;*/

     case OPT_PATTERN:           /* --match  */
       ulfs_match = 1;
diff --git a/options.h b/options.h
index 5ff1da5..75f2f9d 100644
--- a/options.h
+++ b/options.h
@@ -24,8 +24,8 @@
 #define OPT_WRITABLE   'w'
 #define OPT_DEBUG      'd'
 #define OPT_CACHE_SIZE 'c'
-#define OPT_REMOVE     'r'
-#define OPT_ADD        'a'
+/*#define OPT_REMOVE     'r'
+  #define OPT_ADD        'a'*/
 #define OPT_PATTERN    'm'
 #define OPT_PRIORITY   'p'
 #define OPT_STOW       's'
@@ -35,8 +35,8 @@
 #define OPT_LONG_WRITABLE   "writable"
 #define OPT_LONG_DEBUG      "debug"
 #define OPT_LONG_CACHE_SIZE "cache-size"
-#define OPT_LONG_REMOVE     "remove"
-#define OPT_LONG_ADD        "add"
+/*#define OPT_LONG_REMOVE     "remove"
+  #define OPT_LONG_ADD        "add"*/
 #define OPT_LONG_PATTERN    "match"
 #define OPT_LONG_PRIORITY   "priority"
 #define OPT_LONG_STOW       "stow"
-- 
1.5.2.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]