From 9b129fa1dd733d1fddd06463c08606defb5589f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Thu, 16 Sep 2010 15:33:03 +0200 Subject: [PATCH] Added options -n --no-mtab needed by automount --- src/lowntfs-3g.c | 6 ++++++ src/ntfs-3g.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/lowntfs-3g.c b/src/lowntfs-3g.c index 2252d869..882dd076 100644 --- a/src/lowntfs-3g.c +++ b/src/lowntfs-3g.c @@ -4049,6 +4049,7 @@ static int parse_options(int argc, char *argv[]) static const struct option lopt[] = { { "options", required_argument, NULL, 'o' }, { "help", no_argument, NULL, 'h' }, + { "no-mtab", no_argument, NULL, 'n' }, { "verbose", no_argument, NULL, 'v' }, { "version", no_argument, NULL, 'V' }, { NULL, 0, NULL, 0 } @@ -4091,6 +4092,11 @@ static int parse_options(int argc, char *argv[]) case 'h': usage(); exit(9); + case 'n': + /* + * no effect - automount passes it, meaning 'no-mtab' + */ + break; case 'v': /* * We must handle the 'verbose' option even if diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index 1aa934f5..33402a12 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -3997,6 +3997,7 @@ static int parse_options(int argc, char *argv[]) static const struct option lopt[] = { { "options", required_argument, NULL, 'o' }, { "help", no_argument, NULL, 'h' }, + { "no-mtab", no_argument, NULL, 'n' }, { "verbose", no_argument, NULL, 'v' }, { "version", no_argument, NULL, 'V' }, { NULL, 0, NULL, 0 } @@ -4039,6 +4040,11 @@ static int parse_options(int argc, char *argv[]) case 'h': usage(); exit(9); + case 'n': + /* + * no effect - automount passes it, meaning 'no-mtab' + */ + break; case 'v': /* * We must handle the 'verbose' option even if