diff options
author | Brian Behlendorf <[email protected]> | 2010-08-26 11:45:02 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2010-08-31 13:41:57 -0700 |
commit | 60101509ee73c6e61e50c0a4079097f31bb39f4b (patch) | |
tree | 4d17e0f9a56f9c6e70e79d15aa18a563c3e70b3a /module/zfs/vdev.c | |
parent | 325f023544bbec6a478882c442e15304ee379759 (diff) |
Add linux kernel disk support
Native Linux vdev disk interfaces
Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/zfs/vdev.c')
-rw-r--r-- | module/zfs/vdev.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/module/zfs/vdev.c b/module/zfs/vdev.c index 4613e951a..1c14c7750 100644 --- a/module/zfs/vdev.c +++ b/module/zfs/vdev.c @@ -1069,6 +1069,15 @@ vdev_open_child(void *arg) boolean_t vdev_uses_zvols(vdev_t *vd) { +/* + * Stacking zpools on top of zvols is unsupported until we implement a method + * for determining if an arbitrary block device is a zvol without using the + * path. Solaris would check the 'zvol' path component but this does not + * exist in the Linux port, so we really should do something like stat the + * file and check the major number. This is complicated by the fact that + * we need to do this portably in user or kernel space. + */ +#if 0 int c; if (vd->vdev_path && strncmp(vd->vdev_path, ZVOL_DIR, @@ -1077,6 +1086,7 @@ vdev_uses_zvols(vdev_t *vd) for (c = 0; c < vd->vdev_children; c++) if (vdev_uses_zvols(vd->vdev_child[c])) return (B_TRUE); +#endif return (B_FALSE); } |