]> sourceware.org Git - lvm2.git/commit
libdm: remove dm dev without error even with malformed UUID
authorPeter Rajnoha <prajnoha@redhat.com>
Fri, 12 Oct 2012 09:53:04 +0000 (11:53 +0200)
committerPeter Rajnoha <prajnoha@redhat.com>
Fri, 12 Oct 2012 09:53:04 +0000 (11:53 +0200)
commitabb07a1b5ee2bbe4def9218c6fdf05b0a5718e12
tree4f9bff6df717eee950d9b1fdde7c3970d9bb8bc1
parent5a958655ddd63a7e9feeda444788313f9380aef1
libdm: remove dm dev without error even with malformed UUID

On each ioctl return, the device UUID is decoded from \xNN format.
If the UUID of the device being *removed* is malformed (e.g. it
hasn't been corrected before), just remove it without any error
as the UUID is not needed anymore - the device is gone anyway.

Otherwise a misleading error message would be issued just after
the removal:
  # dmsetup remove test
  The UUID "a b" should be mangled but it contains blacklisted characters.
  Command failed
libdm/ioctl/libdm-iface.c
This page took 0.037196 seconds and 5 git commands to generate.