From 3ed84231ec6d4a66a5b20db355eb6e9585e9edc5 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Tue, 30 Mar 2004 15:17:26 +0000 Subject: EA operations added --- util/fusermount.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'util/fusermount.c') 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) -- cgit v1.2.3