Learn R Programming

adfExplorer (version 2.1.0)

get_adf_bitmap: Get virtual disks bitmap flags

Description

Amiga devices had one (or more) blocks dedicated to registering which blocks are used by the file system and which are available to allocate. This block is called the bitmap block. This function returns the bitmap table for the specified volume.

Usage

get_adf_bitmap(dev, vol = 0L, ...)

Value

Returns the bitmap table as a logical

vector. Each, element is named after its referencing block number, the value indicates if the block is reserved by the file system.

Arguments

dev

The virtual adf device for which information needs to be obtained. It should be of class adf_device which can be created with create_adf_device() or connect_adf().

vol

Volume index number on the device starting at 0. Default is 0. Note that floppy disks can only have 1 volume installed.

...

Ignored

Examples

Run this code
my_device <- demo_adf()

bitmap <- get_adf_bitmap(my_device)

## Show blocks used by the file system
bitmap[bitmap]

close(my_device)

Run the code above in your browser using DataLab