mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
libntfs: Don't use "ioctl" as a struct name.
This will allow unistd.h to define it even in _KERNEL_MODE. Change-Id: I6669c670353dda7cc202017d707a6bce3b5519e0 Reviewed-on: https://review.haiku-os.org/c/haiku/+/8561 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
parent
115a635f13
commit
b802b65b09
@ -606,9 +606,9 @@ s64 ntfs_device_size_get(struct ntfs_device *dev, int block_size)
|
||||
partition_info partitionInfo;
|
||||
device_geometry geometry;
|
||||
|
||||
if (dev->d_ops->ioctl(dev, B_GET_PARTITION_INFO, &partitionInfo) == 0)
|
||||
if (dev->d_ops->control(dev, B_GET_PARTITION_INFO, &partitionInfo) == 0)
|
||||
size = partitionInfo.size;
|
||||
else if (dev->d_ops->ioctl(dev, B_GET_GEOMETRY, &geometry) == 0) {
|
||||
else if (dev->d_ops->control(dev, B_GET_GEOMETRY, &geometry) == 0) {
|
||||
size = (off_t)geometry.cylinder_count * geometry.sectors_per_track
|
||||
* geometry.head_count * geometry.bytes_per_sector;
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ struct ntfs_device_operations {
|
||||
s64 offset);
|
||||
int (*sync)(struct ntfs_device *dev);
|
||||
int (*stat)(struct ntfs_device *dev, struct stat *buf);
|
||||
int (*ioctl)(struct ntfs_device *dev, unsigned long request,
|
||||
int (*control)(struct ntfs_device *dev, unsigned long request,
|
||||
void *argp);
|
||||
};
|
||||
|
||||
|
@ -388,5 +388,5 @@ struct ntfs_device_operations ntfs_device_unix_io_ops = {
|
||||
.pwrite = ntfs_device_unix_io_pwrite,
|
||||
.sync = ntfs_device_unix_io_sync,
|
||||
.stat = ntfs_device_unix_io_stat,
|
||||
.ioctl = ntfs_device_unix_io_ioctl,
|
||||
.control = ntfs_device_unix_io_ioctl,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user