Skip to content

Instantly share code, notes, and snippets.

@archerslaw
Last active August 29, 2015 13:59
Show Gist options
  • Save archerslaw/10832007 to your computer and use it in GitHub Desktop.
Save archerslaw/10832007 to your computer and use it in GitHub Desktop.
Thinly-provisioned testing.
Test Matrix:
Filesystem: ext4 and xfs and scsi_debug for host side, and ext4 or xfs for guest side.
Backend: localfile or iSCSI or libiscsi (Note: BZ#1037503 glusterfs not support discard).
Disk Format: RAW for passthrough, RAW/qcow2 for localfile.
Disk Interface: scsi-block/scsi-hd/ide/ahci for UNMAP mode, scsi-block/scsi-hd interface for WRITE SAME mode.
NOTE: Persistent reservations *cannot* be used with discard when QEMU run as non-root user, but can work well in root user.(BZ966883#c5)
Windows only supports automatic discard (like "-o discard" in Linux).
You can check that discard is enabled by running.
$ fsutil behavior query DisableDeleteNotify
The output should be "DisableDeleteNotify = 0". If it is 1, you can run
$ fsutil behavior set DisableDeleteNotify 0
to enable discard.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment