Re: [PATCH] loop: cleanup partitions when detaching loop device

2013-03-14 Thread Phillip Susi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/14/2013 06:07 PM, Andrew Morton wrote: > huh. What is the user-visible effect of this bug? Just a memory > leak or something more serious? Not serious, but user-visible in that the partition devnodes still show up after detaching the backing

Re: [PATCH] loop: cleanup partitions when detaching loop device

2013-03-14 Thread Andrew Morton
On Sun, 3 Mar 2013 13:49:13 -0500 Phillip Susi wrote: > 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

Re: [PATCH] loop: cleanup partitions when detaching loop device

2013-03-14 Thread Andrew Morton
On Sun, 3 Mar 2013 13:49:13 -0500 Phillip Susi ps...@ubuntu.com wrote: 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,

Re: [PATCH] loop: cleanup partitions when detaching loop device

2013-03-14 Thread Phillip Susi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/14/2013 06:07 PM, Andrew Morton wrote: huh. What is the user-visible effect of this bug? Just a memory leak or something more serious? Not serious, but user-visible in that the partition devnodes still show up after detaching the backing

[PATCH] loop: cleanup partitions when detaching loop device

2013-03-03 Thread Phillip Susi
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

[PATCH] loop: cleanup partitions when detaching loop device

2013-03-03 Thread Phillip Susi
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