summaryrefslogtreecommitdiffstats
path: root/cmd/zpool/zpool.d/upath
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/zpool/zpool.d/upath')
-rwxr-xr-xcmd/zpool/zpool.d/upath7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/zpool/zpool.d/upath b/cmd/zpool/zpool.d/upath
new file mode 100755
index 000000000..16a4327d4
--- /dev/null
+++ b/cmd/zpool/zpool.d/upath
@@ -0,0 +1,7 @@
+#!/bin/sh
+if [ "$1" = "-h" ] ; then
+ echo "Show the underlying path for a device."
+ exit
+fi
+
+echo upath="$VDEV_UPATH"