-
BlockDevice( options )
-
BlockDevice.getPath( id )
-
device.open( callback( err, fd ) )
-
device.close( callback( err ) )
-
device.detectBlockSize( size, step, limit, callback( err, blockSize ) )
-
device.detectSize( step, callback( err, size ) )
-
device.partition( options )
-
device.getLBA( cylinder, head, sector )
-
device.read( offset, length, buffer, callback( err, buffer, bytesRead ) )
-
device.readBlocks( fromLBA, toLBA, buffer, callback( err, buffer, bytesRead ) )
-
device.write( offset, buffer, callback( err, bytesWritten ) )
-
device.writeBlocks( fromLBA, buffer, callback( err, bytesWritten ) )
-
BlockDevice.Partition( device, options )
-
get partition.blockSize
-
get partition.sectors
-
get partition.size
-
partition.__OOB( lba )
-
partition.readBlocks( from, to, buffer, callback )
-
partition.writeBlocks( from, data, callback )