Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136552842
D11266.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
461 B
Referenced Files
None
Subscribers
None
D11266.diff
View Options
Index: head/sys/kern/vfs_aio.c
===================================================================
--- head/sys/kern/vfs_aio.c
+++ head/sys/kern/vfs_aio.c
@@ -1550,7 +1550,9 @@
goto aqueue_fail;
}
- if (opcode != LIO_SYNC && job->uaiocb.aio_offset == -1LL) {
+ if ((opcode == LIO_READ || opcode == LIO_WRITE) &&
+ job->uaiocb.aio_offset < 0 &&
+ (fp->f_vnode == NULL || fp->f_vnode->v_type != VCHR)) {
error = EINVAL;
goto aqueue_fail;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 19, 7:25 AM (5 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25609259
Default Alt Text
D11266.diff (461 B)
Attached To
Mode
D11266: Allow negative aio_offset only for the read and write LIO ops on device nodes.
Attached
Detach File
Event Timeline
Log In to Comment