Bug #447
If mkfs is not found, image files are left in the repository
Status: | Closed | Start date: | 12/14/2010 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Javi Fontan | % Done: | 0% | |
Category: | CLI | |||
Target version: | Release 2.2 | |||
Resolution: | fixed | Pull request: | ||
Affected Versions: |
Description
Registering a datablock image in the repository:
If mkfs is not found, the Image is not registered into the pool, but the file is left in the repository.
$ which mkfs /usr/bin/which: no mkfs in (...) $ cat datablock.one NAME = "storage" TYPE = DATABLOCK PERSISTENT = YES SIZE = 10 FSTYPE = ext3 $ oneimage register datablock.one Error: mkfs Image: in mkfs command. $ tree var/images/ var/images/ `-- e50d44a16247b5caf2a0d841f5fad778ad38dbeb
Associated revisions
Bug #447: 'oneimage register' now has some extra error checks and file cleanup.
bug #447: Also removes file if cp fails
Bug #447: 'oneimage register' now has some extra error checks and file cleanup.
(cherry picked from commit c93991f0c49ad8434f82841ae4c8c547ddc268a5)
bug #447: Also removes file if cp fails
(cherry picked from commit 3babd9a405925b6502faa0d09e2c7a8e667c2ea7)
History
#1 Updated by Carlos Martín over 10 years ago
- Subject changed from If mkfs in not found, image files are left in the repository to If mkfs is not found, image files are left in the repository
#2 Updated by Ruben S. Montero over 10 years ago
- Target version set to Release 2.2
#3 Updated by Carlos Martín over 10 years ago
Apart from the original bug, another one was found and solved:
Image templates with a non-existing path were left in the repository as disabled, instead of being deleted.
#4 Updated by Ruben S. Montero over 10 years ago
- Status changed from New to Closed
- Resolution set to fixed
Solved in master