Package ganeti :: Package storage :: Module drbd
[hide private]
[frames] | no frames]

Module drbd

source code

DRBD block device related functionality

Classes [hide private]
  DRBD8
Various methods to deals with the DRBD system as a whole.
  DRBD8Dev
DRBD v8.x block device.
Functions [hide private]
 
_CanReadDevice(path)
Check if we can read from the given device.
source code
Variables [hide private]
  _DEVICE_READ_SIZE = 128* 1024

Imports: errno, logging, time, constants, utils, errors, netutils, objects, base, DRBD8Info, drbd_info, drbd_cmdgen


Function Details [hide private]

_CanReadDevice(path)

source code 

Check if we can read from the given device.

This tries to read the first 128k of the device.

Parameters:
  • path (string)