From: Phillip Susi Date: Fri, 22 Mar 2013 18:21:53 +0000 (-0600) Subject: loop: cleanup partitions when detaching loop device X-Git-Tag: v3.9-rc5~3^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8761a3dc1f07b163414e2215a2cadbb4cfe2a107;p=pandora-kernel.git loop: cleanup partitions when detaching loop device Any partitions added by user space to the loop device were being left in place after detaching the loop device. This was because the detach path issued a BLKRRPART to clean up partitions if LO_FLAGS_PARTSCAN was set, meaning that the partitions were auto scanned on attach. Replace this BLKRRPART with code that unconditionally cleans up partitions on detach instead. Signed-off-by: Phillip Susi Modified by Jens to export delete_partition(). Signed-off-by: Jens Axboe --- Reading git-diff-tree failed