[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Nbd] [PATCH 1/1] NBD: add partition support



I was convinced I'd sent a similar (but more naive) patch for this about
two years ago to nbd-general. Now that I searched through my folders,
it seems I'd only sent it to Wouter.

Most things are handled better by Laurent's version, with the exception
(IMO) that GENHD_FL_SUPPRESS_PARTITION_INFO is being removed
permanently in his, whereas I only remove it before nbd_do_it() and re-add
it afterwards. I'm attaching my version here.

Cheers,
Bogdan

On Wed, Apr 2, 2008 at 3:44 PM, Wouter Verhelst <w@...112...> wrote:
On Tue, Apr 01, 2008 at 05:14:09PM -0400, Paul Clements wrote:
> Below, Laurent notes that partition table re-read doesn't automatically
> occur. For now you'll have to open("/dev/nbdX") to get that to happen.
> Longer term, nbd-client can be modified to fork just before nbd_do_it()
> and then call ioctl(BLKRRPART, "/dev/nbdX") in the parent process
> (probably need to wait for the "pid" file to show up in /sys to avoid a
> race).

I just released nbd-2.9.10, which does just that.

--
<Lo-lan-do> Home is where you have to wash the dishes.
 -- #debian-devel, Freenode, 2004-09-22

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Nbd-general mailing list
Nbd-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nbd-general

Attachment: nbd-partitions-harjoc.diff
Description: Binary data


Reply to: