Skip to content
Permalink
Browse files

10165 libzpool: passing argument 1 to restrict-qualified parameter al…

…iases with argument 4

Reviewed by: Gergő Mihály Doma <domag02@gmail.com>
Reviewed by: John Levon <john.levon@joyent.com>
Approved by: Dan McDonald <danmcd@joyent.com>
  • Loading branch information
tsoome authored and danmcd committed Nov 25, 2018
1 parent 04443fd commit f91fcf59ac2fd04f1816f3dcbc69a46d44276a65
Showing with 5 additions and 4 deletions.
  1. +5 −4 usr/src/uts/common/fs/zfs/dsl_dataset.c
@@ -2130,7 +2130,10 @@ dsl_get_mountpoint(dsl_dataset_t *ds, const char *dsname, char *value,
return (error);
}

/* Process the dsname and source to find the full mountpoint string */
/*
* Process the dsname and source to find the full mountpoint string.
* Can be skipped for 'legacy' or 'none'.
*/
if (value[0] == '/') {
char *buf = kmem_alloc(ZAP_MAXVALUELEN, KM_SLEEP);
char *root = buf;
@@ -2181,10 +2184,8 @@ dsl_get_mountpoint(dsl_dataset_t *ds, const char *dsname, char *value,
relpath);
}
kmem_free(buf, ZAP_MAXVALUELEN);
} else {
/* 'legacy' or 'none' */
(void) snprintf(value, ZAP_MAXVALUELEN, "%s", value);
}

return (0);
}

0 comments on commit f91fcf5

Please sign in to comment.
You can’t perform that action at this time.