FreeBSD Bugzilla – Attachment 7453 Details for
Bug 16163
posix AIO broken for normal files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 690 bytes, created by
Adrian Chadd
on 2000-01-17 20:40:03 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Adrian Chadd
Created:
2000-01-17 20:40:03 UTC
Size:
690 bytes
patch
obsolete
>Index: vfs_aio.c >=================================================================== >RCS file: /home/ncvs/src/sys/kern/vfs_aio.c,v >retrieving revision 1.65 >diff -u -r1.65 vfs_aio.c >--- vfs_aio.c 2000/01/14 02:53:26 1.65 >+++ vfs_aio.c 2000/01/17 20:26:54 >@@ -944,8 +944,16 @@ > > vp = (struct vnode *)fp->f_data; > >+ /* >+ * If its not a disk, we don't want to return a positive error. >+ * It causes the aio code to not fall through to try the thread >+ * way when you're talking to a regular file. >+ */ > if (!vn_isdisk(vp, &error)) >- return (error); >+ if (error == ENOTBLK) >+ return -1; >+ else >+ return (error); > > if (cb->aio_nbytes % vp->v_rdev->si_bsize_phys) > return (-1);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 16163
: 7453