zfs/cmd
Tony Hutter 9d14963de6 vdev_id: Fix partition regular expression
Given a DM device name, the old vdev_id script would extract any text
after a 'p' as the partition number.  It then appends "-part" + the
partition number to the name, giving a by-vdev name like "L0-part5".

This works fine if the DM name is like 'dm-2p5', but doesn't work if
the DM name is a multipath name like "mpatha".  In those cases it
incorrectly matches the 'p' in "mpatha", giving by-vdev names like
"L0-partatha".

This patch fixes the issue by making the partition regex match stricter.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #11637
2021-11-12 16:31:55 -08:00
..
arc_summary arc_summary3: Handle overflowing value width 2020-12-23 14:34:59 -08:00
arcstat FreeBSD: Update usage of py-sysctl 2020-12-23 14:34:59 -08:00
dbufstat dbufstat: Fix warnings with Python 3.8 2020-12-23 15:11:01 -08:00
fsck_zfs Fix typos in cmd/ 2019-08-30 09:43:30 -07:00
mount_zfs Use fallthrough macro 2021-11-12 15:24:36 -08:00
raidz_test cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
vdev_id vdev_id: Fix partition regular expression 2021-11-12 16:31:55 -08:00
zdb Update `checkstyle` workflow env to ubuntu-20.04 2021-11-12 16:31:55 -08:00
zed zed: only go up to current limit in close_from() fallback 2021-11-12 15:24:36 -08:00
zfs Added error for writing to /dev/ on Linux 2021-11-12 16:31:55 -08:00
zfs_ids_to_path cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
zgenhostid cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
zhack cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
zinject cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
zpool cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
zstream cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
zstreamdump Minor `zstream redup` command fixes 2020-04-10 21:10:09 -07:00
ztest cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
zvol_id cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
zvol_wait zvol_wait should ignore redacted zvols 2019-11-06 10:51:19 -08:00
Makefile.am cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00