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:
akw27@labyrinth.cl.cam.ac.uk committed 2005-02-08 18:21:54 +00:00
1 parent 0e68b181a9
commit 0bb3ebdb6c
27 files changed
+3795 -1

No files matched your search

+14
View File
@@ -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":
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.