Fix crash when removing a data disk that shares the UUID with another disk, like BTRFS subvolumes of the same filesystem

This commit is contained in:
Andrea Mazzoleni 2026-11-26 09:55:33 +01:00
parent 855a062b81
commit 2571cce6d5
3 changed files with 75 additions and 6 deletions

View file

@ -990,6 +990,8 @@ endif # HAVE_POSIX
$(MSG) Rename a disk
$(FAILENV) $(SNAPRAID) $(CHECKFLAGS) -c $(RENAME) --test-match-first-uuid sync
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS) -c $(CONF) --test-match-first-uuid sync
$(MSG) Remove a disk with the same UUID of another one
$(FAILENV) $(SNAPRAID) $(CHECKFLAGS) -c $(HOLE) --test-match-first-uuid --test-expect-failure sync
#### SCRUB ####
$(MSG) Scrub some times
$(TESTENV) $(SNAPRAID) $(CHECKFLAGS) -c $(CONF) --test-force-scrub-at 100 scrub