Example #1
0
 def create_blkdev(self, auto_close_rdb_blkdev=False):
     """create a block device for accessing this partition"""
     return PartBlockDevice(self.blkdev, self.part_blk,
                            auto_close_rdb_blkdev)
Example #2
0
 def create_blkdev(self, auto_close_rdisk=False):
     """create a block device for accessing this partition"""
     rdisk = None
     if auto_close_rdisk:
         rdisk = self.rdisk
     return PartBlockDevice(self.blkdev, self.part_blk, rdisk)