Project

General

Profile

Actions

Feature #8304

closed

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

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

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

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:

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

Actions #1

Updated by Electric Monk over 6 years ago

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

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>

Actions

Also available in: Atom PDF