summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c940b82)
Add a bit of logic that appears to be in other mount helpers.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Neil Brown <neilb@suse.de>
nfs_mount_data_version = NFS_MOUNT_VERSION;
}
nfs_mount_data_version = NFS_MOUNT_VERSION;
}
+static void print_one(char *spec, char *node, char *type, char *opts)
+{
+ if (verbose) {
+ printf("%s on %s type %s", spec, node, type);
+
+ if (opts != NULL)
+ printf(" (%s)", opts);
+
+ printf("\n");
+ }
+}
+
/* Try to build a canonical options string. */
static char * fix_opts_string (int flags, const char *extra_opts) {
const struct opt_map *om;
/* Try to build a canonical options string. */
static char * fix_opts_string (int flags, const char *extra_opts) {
const struct opt_map *om;
if (mnt_err)
exit(EX_FAIL);
if (mnt_err)
exit(EX_FAIL);
+ if (!fake)
+ print_one(spec, mount_point, fs_type, mount_opts);
+
if (!nomtab)
mnt_err = add_mtab(spec, mount_point, fs_type, flags, extra_opts,
0, 0 /* these are always zero for NFS */ );
if (!nomtab)
mnt_err = add_mtab(spec, mount_point, fs_type, flags, extra_opts,
0, 0 /* these are always zero for NFS */ );