]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mount.ceph: make -v a little more verbose
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 8 Oct 2010 19:13:46 +0000 (12:13 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 8 Oct 2010 19:16:29 +0000 (12:16 -0700)
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
src/mount/mount.ceph.c

index 5517d4c62b0b38cf34dbb4758100755e6a482f4e..db0581ee2b85351f9e10162a721885746e10564b 100755 (executable)
@@ -266,13 +266,15 @@ static char *parse_options(const char *data, int *filesys_flags)
                        *end = '\0';
                        close(fd);
 
-                       //printf("read secret of len %d from %s\n", len, fn);
+                       if (verboseflag)
+                               printf("read secret of len %d from %s\n", len, fn);
                        data = "secret";
                        value = secret;
                        skip = 0;
                } else {
                        skip = 0;
-                       /* printf("ceph: Unknown mount option %s\n",data); */
+                       if (verboseflag)
+                               printf("ceph: Unknown mount option %s\n",data);
                }
 
                /* Copy (possibly modified) option to out */