1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Fix pvremove error path for case when PV is in use.

This commit is contained in:
Alasdair Kergon 2006-11-17 02:45:51 +00:00
parent 9f7e77099b
commit ba4f5d8080
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.15 - Version 2.02.15 -
==================================== ====================================
Fix pvremove error path for case when PV is in use.
Warn if certain duplicate config file entries are seen. Warn if certain duplicate config file entries are seen.
Enhance lvm_dump.sh for sysreport integration and add man page. Enhance lvm_dump.sh for sysreport integration and add man page.
Fix --autobackup argument which could never disable backups. Fix --autobackup argument which could never disable backups.

View File

@ -92,9 +92,9 @@ static int pvremove_single(struct cmd_context *cmd, const char *pv_name,
} }
if (!dev_test_excl(dev)) { if (!dev_test_excl(dev)) {
log_error("Can't open %s exclusively. Mounted filesystem?", log_error("Can't open %s exclusively - not removing. "
dev_name(dev)); "Mounted filesystem?", dev_name(dev));
return 0; goto error;
} }
/* Wipe existing label(s) */ /* Wipe existing label(s) */