Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Paul Clements <paul.clements-G8/ITkJZaeZWk0Htik3J/w <at> public.gmane.org>
Subject: [PATCH 1/1] NBD: add partition support
Newsgroups: gmane.linux.drivers.nbd.general
Date: Tuesday 1st April 2008 21:14:09 UTC (over 10 years ago)
This patch from Laurent Vivier (with minor changes by Paul Clements) 
adds partition support to NBD. By default this is turned off, but can be 
enabled with a new module parameter, max_part.

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).

Thanks,
Paul
 
CD: 3ms