aboutsummaryrefslogtreecommitdiff
path: root/src/mountinfo.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-09 17:41:53 +0000
committerRoy Marples <roy@marples.name>2007-10-09 17:41:53 +0000
commitd4685722060c23b625164beccacab6b476fcd5cd (patch)
tree8a328b3a64a4f192ce103b07c48cad4f4cdc9989 /src/mountinfo.c
parentdb468457dc4c1b15f62b09d70a43d418343020b8 (diff)
Improve applet help a little. Also, if mountinfo as any mounts given, work explictly with --netdev/--nonetdev
Diffstat (limited to 'src/mountinfo.c')
-rw-r--r--src/mountinfo.c29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/mountinfo.c b/src/mountinfo.c
index d8cbc066..061ae945 100644
--- a/src/mountinfo.c
+++ b/src/mountinfo.c
@@ -72,10 +72,10 @@ static int process_mount (char ***list, struct args *args,
return (-1);
#endif
- if (args->netdev == net_yes && netdev != -1) {
+ if (args->netdev == net_yes && (netdev != -1 || args->mounts)) {
if (netdev != 0)
return (1);
- } else if (args->netdev == net_no && netdev != -1) {
+ } else if (args->netdev == net_no && (netdev != -1 || args->mounts)) {
if (netdev != 1)
return (1);
} else {
@@ -307,20 +307,21 @@ static struct option longopts[] = {
{ "netdev", 0, NULL, 'e'},
{ "nonetdev", 0, NULL, 'E'},
longopts_COMMON
- { NULL, 0, NULL, 0}
};
static const char * const longopts_help[] = {
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
+ "fstype regex to find",
+ "fstype regex to skip",
+ "node regex to find",
+ "node regex to skip",
+ "options regex to find",
+ "options regex to skip",
+ "point regex to find",
+ "point regex to skip",
+ "print options",
+ "print fstype",
+ "print node",
+ "is it a network device",
+ "is it not a network device",
longopts_help_COMMON
};
#include "_usage.c"