Make stat and ioctl return error instead of silently succeeding.

This probably breaks Cygwin but never mind...

(Logical change 1.188)
edge.strict_endians
cantab.net!aia21 2003-10-06 11:38:25 +00:00
parent aa247f5101
commit 68fc3c2642
1 changed files with 3 additions and 3 deletions

View File

@ -381,7 +381,7 @@ static int ntfs_device_win32_stat(struct ntfs_device *dev, struct stat *buf)
{
fprintf(stderr, "win32_fstat() unimplemented\n");
errno = ENOTSUP;
return 0;
return -1;
}
static int ntfs_device_win32_ioctl(struct ntfs_device *dev, int request,
@ -389,7 +389,7 @@ static int ntfs_device_win32_ioctl(struct ntfs_device *dev, int request,
{
fprintf(stderr, "win32_ioctl() unimplemented\n");
errno = ENOTSUP;
return 0;
return -1;
}
extern s64 ntfs_pread(struct ntfs_device *dev, const s64 pos, s64 count,
@ -410,7 +410,7 @@ static s64 ntfs_device_win32_pwrite(struct ntfs_device *dev, const void *buf,
return ntfs_pwrite(dev, offset, count, buf);
}
struct ntfs_device_operations ntfs_device_win32_ops = {
struct ntfs_device_operations ntfs_device_win32_io_ops = {
.open = ntfs_device_win32_open,
.close = ntfs_device_win32_close,
.seek = ntfs_device_win32_seek,