lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20111208151650.GB16934@nb.redhat.com>
Date:	Thu, 8 Dec 2011 16:16:50 +0100
From:	Karel Zak <kzak@...hat.com>
To:	Phillip Susi <psusi@....rr.com>
Cc:	linux-kernel@...r.kernel.org, Vivek Goyal <vgoyal@...hat.com>,
	Jens Axboe <jaxboe@...ionio.com>
Subject: Re: [PATCH 1/2] Add partition resize function to BLKPG ioctl

On Thu, Dec 08, 2011 at 09:22:12AM -0500, Phillip Susi wrote:
> On 12/8/2011 7:30 AM, Karel Zak wrote:
>>   It seems very close to Vivek's BLKPG_EXTEND_PARTITION idea, see:
>>
>>      https://lkml.org/lkml/2011/9/1/351
>>
>>   It's evident that we (userspace) need something better than
>>   BLKPG_{ADD,DEL}_* and BLKRRPART, but no response from kernel side :-(
>
> Yes, this looks very similar to mine, except that I also wanted to allow  
> shrinking the partition, not just extending, since btrfs can handle this  
> ( tested ).

 Is it safe to alter the partition size in arbitrary way if the
 partition is used by any process?
 
 Vivek's BLKPG_EXTEND_PARTITIONV seems more safety, because it extends
 a partition size only, so all offsets in all running stuff are still
 valid.

 Maybe you need to check bdevp->bd_openers and returns -EBUSY if you
 want to alter the begin of the partition.

    Karel


-- 
 Karel Zak  <kzak@...hat.com>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ