device_type | R Documentation |
adf_device
connectionA collection of functions to retrieve information about the virtual device, or any volume (file system) available on the device. See examples for usage and results.
device_type(dev, ...)
## S3 method for class 'adf_device'
device_type(dev, ...)
device_capacity(dev, ...)
## S3 method for class 'adf_device'
device_capacity(dev, ...)
volume_capacity(dev, ...)
## S3 method for class 'adf_device'
volume_capacity(dev, vol = 0L, ...)
volume_name(dev, ...)
volume_name(dev, ...) <- value
## S3 method for class 'adf_device'
volume_name(dev, vol = 0L, ...)
## S3 replacement method for class 'adf_device'
volume_name(dev, vol = 0L, ...) <- value
n_volumes(dev, ...)
## S3 method for class 'adf_device'
n_volumes(dev, ...)
bytes_free(dev, ...)
## S3 method for class 'adf_device'
bytes_free(dev, vol = 0L, ...)
is_bootable(dev, ...)
## S3 method for class 'adf_device'
is_bootable(dev, vol = 0L, ...)
is_fast_file_system(dev, ...)
## S3 method for class 'adf_device'
is_fast_file_system(dev, vol = 0L, ...)
is_international(dev, ...)
## S3 method for class 'adf_device'
is_international(dev, vol = 0L, ...)
is_dircache(dev, ...)
## S3 method for class 'adf_device'
is_dircache(dev, vol = 0L, ...)
is_write_protected(dev, ...)
## S3 method for class 'adf_device'
is_write_protected(dev, ...)
dev |
The virtual adf device for which information needs to be obtained.
It should be of class |
... |
Ignored |
vol |
Volume index number on the device starting at |
value |
Replacement value. In case of |
Returns the requested information, or an updated copy of dev
in case
of an assign operation (<-
).
Pepijn de Vries
## Open virtual device to demonstrate methods
my_device <- demo_adf(write_protected = FALSE)
device_type(my_device)
device_capacity(my_device) # in bytes
volume_capacity(my_device) # in bytes
n_volumes(my_device) # number of volumes available on device
volume_name(my_device) # name of the volume
volume_name(my_device) <- "new_name" # rename the volume
bytes_free(my_device) # bytes available for writing
is_bootable(my_device) # tests if device is potentially bootable
is_fast_file_system(my_device) # tests if volume uses FFS
is_international(my_device) # tests if file system uses intl mode
is_dircache(my_device) # tests if file system uses dir caching
is_write_protected(my_device) # tests if device is protected against writing
close(my_device)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.