mirror of
https://github.com/openzfs/zfs.git
synced 2025-10-01 19:56:28 +00:00

For the sake of completeness we need to validate everything works well not just on IDE or SCSI drives. But we need to verify a zpool configured on top of the Linux virtual block devices. These scripts simply that testing process, and have shown that while everything is good on top of a ram disk. Right now the code base panics the kernel when layered on top of either an md or dm style device. For the moment don't do that.
17 lines
331 B
Bash
17 lines
331 B
Bash
#!/bin/bash
|
|
#
|
|
# Single ram disk /dev/ram0 Raid-0 Configuration
|
|
#
|
|
|
|
DEVICES="/dev/ram0"
|
|
|
|
zpool_create() {
|
|
msg ${ZPOOL} create ${FORCE_FLAG} ${ZPOOL_NAME} ${DEVICES}
|
|
${ZPOOL} create ${FORCE_FLAG} ${ZPOOL_NAME} ${DEVICES} || exit 1
|
|
}
|
|
|
|
zpool_destroy() {
|
|
msg ${ZPOOL} destroy ${ZPOOL_NAME}
|
|
${ZPOOL} destroy ${ZPOOL_NAME} || exit 1
|
|
}
|