summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRyan Moeller <[email protected]>2019-11-11 15:15:44 -0500
committerBrian Behlendorf <[email protected]>2019-11-11 12:15:44 -0800
commit035ebb365383dcca71c4c542093ea1ad2b8e1dea (patch)
tree54e0ca3b772d9be3e4fa7d5c13008c59e96b4b8e /include
parent5a6ac4cffcd0255ca6f730bcf356e12891fd18af (diff)
Allow platform dependent path stripping for vdevs
On Linux the full path preceding devices is stripped when formatting vdev names. On FreeBSD we only want to strip "/dev/". Hide the implementation details of path stripping behind zfs_strip_path(). Make zfs_strip_partition_path() static in Linux implementation while here, since it is never used outside of the file it is defined in. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes #9565
Diffstat (limited to 'include')
-rw-r--r--include/libzutil.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libzutil.h b/include/libzutil.h
index e453e4feb..93aac5f3c 100644
--- a/include/libzutil.h
+++ b/include/libzutil.h
@@ -97,7 +97,7 @@ extern int zfs_append_partition(char *path, size_t max_len);
extern int zfs_resolve_shortname(const char *name, char *path, size_t pathlen);
extern char *zfs_strip_partition(char *);
-extern char *zfs_strip_partition_path(char *);
+extern char *zfs_strip_path(char *);
extern int zfs_strcmp_pathname(const char *, const char *, int);