After configuring allowList
and denyList
for SAN transport mode, customers requested a wildcard mechanism for ease of use. VDDK 8.0.1 and later support wildcards to simplify list making. You can use meta character expressions * ? [xyz] [a-z] [0-9] with the same meanings as in Bash shell.
In case of duplicates or ambiguity, vixDiskLib.transport.san.allowlist
takes precedence over vixDiskLib.transport.san.denylist
. Wildcards match neither directory separator slash (/) nor folder separator backslash (\). On Windows, deny and allow lists must contain "\\?\"
or "\\.\PhysicalDrive"
prefix, and sharp (#) must be inside double-quotes to avoid interpretation as a comment; allowList="\\?\scsi#disk*"
for example.
Metacharacters | Examples of wildcard use |
---|---|
* | Match the preceding character or subexpression zero or more times, for example /dev/* matches /dev/, /dev/ab, and /dev/cde |
? | Match any single character, for example /dev/sd? matches /dev/sda and /dev/sdb |
[a-z] | Match a character in the specified range, for example /dev/test[1-2] matches /dev/test1 and /dev/test2 |
[xyz] | Match any character included in the set, for example /dev/sd[abc] matches /dev/sda, /dev/sdb, and /dev/sdc |
vixDiskLib.transport.san.denylist="/dev/sd*" vixDiskLib.transport.san.allowlist="/dev/sd[a-f]"
Example of allow and deny lists for Windows:
vixDiskLib.transport.san.allowlist="\\?\scsi#disk&ven_scst_bio&prod_disk[1-3]*" vixDiskLib.transport.san.denylist="\\?\scsi#disk&ven_scst_bio&prod_disk4*"