get_drive_for_block


Description:

public Drive get_drive_for_block (Block block)

Gets the Drive that block belongs to, if any.

Parameters:

this

A Client.

block

A Block.

Returns:

A Drive or null if there is no Drive for block - free the returned object with unref.