From fc67fa5f1239e49d5c86cc1bed3b53f1ef4a6f74 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Tue, 9 Jan 2001 03:20:39 +0000 Subject: 2001-01-09 Marcus Brinkmann * include/device/device_types.h: New get_status call DEV_GET_RECORDS to get the number of records of a device (rather than the number of bytes). Accordingly define DEV_GET_RECORDS_DEVICE_RECORDS, DEV_GET_RECORDS_RECORD_SIZE and DEV_GET_RECORDS_COUNT. * linux/dev/glue/block.c (device_get_status): Handle DEV_GET_RECORDS. --- include/device/device_types.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/device/device_types.h b/include/device/device_types.h index d02b8f1d..08eec4a5 100644 --- a/include/device/device_types.h +++ b/include/device/device_types.h @@ -110,6 +110,11 @@ typedef int dev_status_data_t[DEV_STATUS_MAX]; # define DEV_GET_SIZE_DEVICE_SIZE 0 /* 0 if unknown */ # define DEV_GET_SIZE_RECORD_SIZE 1 /* 1 if sequential */ #define DEV_GET_SIZE_COUNT 2 +/* size a device in record numbers, not bytes */ +#define DEV_GET_RECORDS 1 +# define DEV_GET_RECORDS_DEVICE_RECORDS 0 /* 0 if unknown */ +# define DEV_GET_RECORDS_RECORD_SIZE 1 /* 1 if sequential */ +#define DEV_GET_RECORDS_COUNT 2 /* * Device error codes -- cgit v1.2.3