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
| ||
|
Date: Tue, 01 Apr 2008 17:14:09 -0400
From: Paul Clements <paul.clements@...eleye.com>
To: Andrew Morton <akpm@...ux-foundation.org>
CC: linux-kernel@...r.kernel.org, Bill Davidsen <davidsen@....com>,
nbd-general@...ts.sourceforge.net,
Laurent Vivier <Laurent.Vivier@...l.net>,
Wouter Verhelst <w@...r.be>
Subject: [PATCH 1/1] NBD: add partition support
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
View attachment "nbd_partitions.diff" of type "text/x-patch" (5844 bytes)
Powered by blists - more mailing lists