mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
bitkeeper revision 1.1159.1.551 (42090342LHDFQZTluOIKtDxiXyfkHA)
Initial checkin of blktap user-land tools. These are fairly experimental, but a few people have asked to use them. This checkin also includes Christian's gnbd client library code. Signed-off-by: andrew.warfield@cl.cam.ac.uk
This commit is contained in:
1 parent
0e68b181a9
commit
0bb3ebdb6c
27 files changed
+3795
-1
No files matched your search
@@ -363,6 +363,20 @@ class BlkDev(controller.SplitDev):
|
||||
Blkctl.block('unbind', self.type, self.node)
|
||||
|
||||
def setNode(self, node):
|
||||
|
||||
# NOTE:
|
||||
# This clause is testing code for storage system experiments.
|
||||
# Add a new disk type that will just pass an opaque id in the
|
||||
# start_sector and use an experimental device type.
|
||||
# Please contact andrew.warfield@cl.cam.ac.uk with any concerns.
|
||||
if self.type == 'amorfs':
|
||||
self.node = node
|
||||
self.device = 61440 # (240,0)
|
||||
self.start_sector = long(self.params)
|
||||
self.nr_sectors = long(0)
|
||||
return
|
||||
# done.
|
||||
|
||||
mounted_mode = check_mounted(self, node)
|
||||
if not '!' in self.mode and mounted_mode:
|
||||
if mounted_mode is "w":
|
||||
|
||||