diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2004-03-30 15:17:26 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2004-03-30 15:17:26 +0000 |
commit | 3ed84231ec6d4a66a5b20db355eb6e9585e9edc5 (patch) | |
tree | b5f1bb251e0af63d3986d05db89ef38f99cb6022 /util | |
parent | 98667e21f5657c7f4031523dc675c352825855d1 (diff) |
EA operations added
Diffstat (limited to 'util')
-rw-r--r-- | util/fusermount.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/util/fusermount.c b/util/fusermount.c index 9af24d1..42e9d47 100644 --- a/util/fusermount.c +++ b/util/fusermount.c @@ -188,8 +188,9 @@ static int remove_mount(const char *mnt, int quiet, int lazy) if(found) { res = umount2(mnt, lazy ? 2 : 0); if(res == -1) { - fprintf(stderr, "%s: failed to unmount %s: %s\n", progname, mnt, - strerror(errno)); + if(!quiet) + fprintf(stderr, "%s: failed to unmount %s: %s\n", + progname, mnt,strerror(errno)); found = -1; } } @@ -587,8 +588,9 @@ int main(int argc, char *argv[]) } else { res = umount2(mnt, lazy ? 2 : 0); if(res == -1) { - fprintf(stderr, "%s: failed to unmount %s: %s\n", progname, mnt, - strerror(errno)); + if (!quiet) + fprintf(stderr, "%s: failed to unmount %s: %s\n", + progname, mnt, strerror(errno)); } } if(res == -1) |