Ignore nanoseconds if -N is specified.

This commit is contained in:
Andrea Mazzoleni 2012-11-12 23:01:07 +01:00
parent d6678db702
commit dc3b03c4c4
6 changed files with 24 additions and 7 deletions

View file

@ -62,6 +62,7 @@ void usage(void)
printf(" " SWITCH_GETOPT_LONG("-N, --find-by-name ", "-N") " Find the files by name instead than by inode\n");
printf(" " SWITCH_GETOPT_LONG("-Z, --force-zero ", "-Z") " Force synching of files that get zero size\n");
printf(" " SWITCH_GETOPT_LONG("-E, --force-empty ", "-E") " Force synching of disks that get empty\n");
printf(" " SWITCH_GETOPT_LONG("-S, --force-second ", "-S") " Force second precision in timestamps\n");
printf(" " SWITCH_GETOPT_LONG("-s, --start BLKSTART ", "-s") " Start from the specified block number\n");
printf(" " SWITCH_GETOPT_LONG("-t, --count BLKCOUNT ", "-t") " Count of block to process\n");
printf(" " SWITCH_GETOPT_LONG("-v, --verbose ", "-v") " Verbose\n");
@ -84,6 +85,7 @@ struct option long_options[] = {
{ "count", 1, 0, 't' },
{ "force-zero", 0, 0, 'Z' },
{ "force-empty", 0, 0, 'E' },
{ "force-second", 0, 0, 'S' },
{ "find-by-name", 0, 0, 'N' },
{ "audit-only", 0, 0, 'a' },
{ "speed-test", 0, 0, 'T' },
@ -101,7 +103,7 @@ struct option long_options[] = {
};
#endif
#define OPTIONS "c:f:d:s:t:ZENaTvhVG"
#define OPTIONS "c:f:d:s:t:ZESNaTvhVG"
volatile int global_interrupt = 0;