changed ioctl hook return code when the opcode isn't supported.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40784 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -722,7 +722,7 @@ bfs_ioctl(fs_volume* _volume, fs_vnode* _node, void* _cookie, uint32 cmd,
|
||||
}
|
||||
#endif
|
||||
}
|
||||
return B_BAD_VALUE;
|
||||
return B_DEV_INVALID_IOCTL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -365,7 +365,7 @@ btrfs_ioctl(fs_volume* _volume, fs_vnode* _node, void* _cookie, uint32 cmd,
|
||||
TRACE("ioctl: %lu\n", cmd);
|
||||
|
||||
/*Volume* volume = (Volume*)_volume->private_volume;*/
|
||||
return B_OK;
|
||||
return B_DEV_INVALID_IOCTL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -370,7 +370,7 @@ exfat_ioctl(fs_volume* _volume, fs_vnode* _node, void* _cookie, uint32 cmd,
|
||||
TRACE("ioctl: %lu\n", cmd);
|
||||
|
||||
/*Volume* volume = (Volume*)_volume->private_volume;*/
|
||||
return B_OK;
|
||||
return B_DEV_INVALID_IOCTL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -565,7 +565,7 @@ ext2_ioctl(fs_volume* _volume, fs_vnode* _node, void* _cookie, uint32 cmd,
|
||||
}
|
||||
}
|
||||
|
||||
return B_OK;
|
||||
return B_DEV_INVALID_IOCTL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1220,7 +1220,7 @@ dosfs_ioctl(fs_volume *_vol, fs_vnode *_node, void *cookie, uint32 code,
|
||||
default :
|
||||
DPRINTF(0, ("dosfs_ioctl: vol %lx, vnode %Lx code = %ld\n",
|
||||
vol->id, node->vnid, code));
|
||||
result = EINVAL;
|
||||
result = B_DEV_INVALID_IOCTL;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -328,7 +328,7 @@ status_t
|
||||
Volume::IOCtl(Node* node, void* cookie, int cmd, void* buffer,
|
||||
size_t bufferSize)
|
||||
{
|
||||
return B_BAD_VALUE;
|
||||
return B_DEV_INVALID_IOCTL;
|
||||
}
|
||||
|
||||
// SetFlags
|
||||
|
||||
@@ -318,7 +318,7 @@ PRINT((" RAMFS_IOCTL_DUMP_INDEX, `%s'\n", name));
|
||||
break;
|
||||
}
|
||||
default:
|
||||
error = B_BAD_VALUE;
|
||||
error = B_DEV_INVALID_IOCTL;
|
||||
break;
|
||||
}
|
||||
RETURN_ERROR(error);
|
||||
|
||||
Reference in New Issue
Block a user