Project

General

Profile

Feature #8304

zfs-tests/bin/zfstest should allow DISKS=(zvols)

Added by Yuri Pankov over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
tests
Start date:
2017-05-30
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

The command /opt/zfs-test/bin/zfstest can work on ZFS volumes (a.k.a. "zvols") as well as "disks", but the device paths look different. For disks they're /dev/rdsk/${disk}s0 but for "zvols" they look like /dev/zvol/rdsk/pool/xx/vol

The zfs-test dont currently work with zvols, i.e. create 3 zvols i.e. as follows:

tank/junk/vol1
tank/junk/vol2
tank/junk/vol3

and set the DISKS env. variable as DISKS=/dev/zvol/rdsk/tank/junk/vol{1,2,3}, then run the test as described in /opt/zfs-tests/README, the test fails in the function verify_disks

History

#1

Updated by Electric Monk over 2 years ago

  • % Done changed from 50 to 100
  • Status changed from In Progress to Closed

git commit 0dbcca9b391b6a95b983f29699611dedbcb5d262

commit  0dbcca9b391b6a95b983f29699611dedbcb5d262
Author: Gordon Ross <gwr@nexenta.com>
Date:   2017-06-06T05:16:02.000Z

    8304 zfs-tests/bin/zfstest should allow DISKS=(zvols)
    Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
    Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
    Reviewed by: John Kennedy <john.kennedy@delphix.com>
    Approved by: Prakash Surya <prakash.surya@delphix.com>

Also available in: Atom PDF