[dm-devel] kpartx -d fails to delete partition mapping for long filenames

Carsten Scholtes Carsten_Scholtes at gmx.net
Mon Apr 7 11:19:53 UTC 2014


Using kpartx (version: multipath-tools (0.4.9-3ubuntu5.1) precise, as provided in Ubuntu 12.04.3 LTS 64 Bit), I noticed the following problem:
 
While it is possible to add a partition mapping for a file <name> with a length of more than 64 characters (kpartx -av <name>), it appears to be impossible to delete the created mapping using the same filename (kpartx -d <name>). For filenames longer than 64 characters, the mapping is silently _not_ removed: No error message is issued and the return code is 0.

(Using the correct loop device <loop>, the mapping can still be removed (kaprtx -d <loop>). Additionally, in this case, the implicitly allocated loop device has to be removed explicitly (losetup -d <loop>).)




More information about the dm-devel mailing list