Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110066013
D20575.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
674 B
Referenced Files
None
Subscribers
None
D20575.diff
View Options
Index: head/sys/fs/pseudofs/pseudofs_vnops.c
===================================================================
--- head/sys/fs/pseudofs/pseudofs_vnops.c
+++ head/sys/fs/pseudofs/pseudofs_vnops.c
@@ -68,6 +68,8 @@
KASSERT((pn)->pn_type == pfstype_symlink, \
("%s(): VLNK vnode refers to non-link pfs_node", __func__))
+#define PFS_MAXBUFSIZ 1024 * 1024
+
/*
* Returns the fileno, adjusted for target pid
*/
@@ -677,8 +679,8 @@
goto ret;
}
buflen = uio->uio_offset + uio->uio_resid;
- if (buflen > MAXPHYS)
- buflen = MAXPHYS;
+ if (buflen > PFS_MAXBUFSIZ)
+ buflen = PFS_MAXBUFSIZ;
sb = sbuf_new(sb, NULL, buflen + 1, 0);
if (sb == NULL) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 14, 4:41 AM (20 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16637583
Default Alt Text
D20575.diff (674 B)
Attached To
Mode
D20575: pseudofs: add sysctl to set sbuf buffer size
Attached
Detach File
Event Timeline
Log In to Comment