commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 14/25: ext2fs: Disable option to specify alternate superblock.


From: Samuel Thibault
Subject: [hurd] 14/25: ext2fs: Disable option to specify alternate superblock.
Date: Mon, 24 Oct 2016 00:16:45 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit e6bffe8d286d49311c0d34acab4b9da867e0dfe8
Author: Justus Winter <address@hidden>
Date:   Mon Oct 3 18:45:51 2016 +0200

    ext2fs: Disable option to specify alternate superblock.
    
    * ext2fs/ext2fs.c (options): Disable '--sblock', this has never been
    implemented.
    (parse_opt): Likewise.
---
 ext2fs/ext2fs.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/ext2fs/ext2fs.c b/ext2fs/ext2fs.c
index 03c9eed..1ead6d2 100644
--- a/ext2fs/ext2fs.c
+++ b/ext2fs/ext2fs.c
@@ -69,8 +69,11 @@ options[] =
    " (not compiled in)"
 #endif
   },
+#ifdef ALTERNATE_SBLOCK
+  /* XXX This is not implemented.  */
   {"sblock", 'S', "BLOCKNO", 0,
    "Use alternate superblock location (1kb blocks)"},
+#endif
   {0}
 };
 
@@ -83,7 +86,9 @@ parse_opt (int key, char *arg, struct argp_state *state)
   struct
   {
     int debug_flag;
+#ifdef ALTERNATE_SBLOCK
     unsigned int sb_block;
+#endif
   } *values = state->hook;
 
   switch (key)
@@ -91,6 +96,7 @@ parse_opt (int key, char *arg, struct argp_state *state)
     case 'D':
       values->debug_flag = 1;
       break;
+#ifdef ALTERNATE_SBLOCK
     case 'S':
       values->sb_block = strtoul (arg, &arg, 0);
       if (!arg || *arg != '\0')
@@ -99,6 +105,7 @@ parse_opt (int key, char *arg, struct argp_state *state)
          return EINVAL;
        }
       break;
+#endif
 
     case ARGP_KEY_INIT:
       state->child_inputs[0] = state->input;
@@ -107,7 +114,9 @@ parse_opt (int key, char *arg, struct argp_state *state)
        return ENOMEM;
       state->hook = values;
       memset (values, 0, sizeof *values);
+#ifdef ALTERNATE_SBLOCK
       values->sb_block = SBLOCK_BLOCK;
+#endif
       break;
 
     case ARGP_KEY_SUCCESS:

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

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