diff options
author | kib <kib@FreeBSD.org> | 2013-08-16 14:22:20 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2013-08-16 14:22:20 +0000 |
commit | 408a640438d54402be29b92aefda7ba7b30eea12 (patch) | |
tree | c3ca331a6d664a174b37499d96e02899b6c3678b /sys/kern | |
parent | a43a1c528c44934b6d1c882f39cb7d4f58d6257e (diff) | |
download | FreeBSD-src-408a640438d54402be29b92aefda7ba7b30eea12.zip FreeBSD-src-408a640438d54402be29b92aefda7ba7b30eea12.tar.gz |
Restore the previous sendfile(2) behaviour on the block devices.
Provide valid .fo_sendfile method for several missed struct fileops.
Reviewed by: glebius
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/sys_procdesc.c | 1 | ||||
-rw-r--r-- | sys/kern/vfs_vnops.c | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/sys_procdesc.c b/sys/kern/sys_procdesc.c index f400041..bacaf18 100644 --- a/sys/kern/sys_procdesc.c +++ b/sys/kern/sys_procdesc.c @@ -113,6 +113,7 @@ static struct fileops procdesc_ops = { .fo_close = procdesc_close, .fo_chmod = procdesc_chmod, .fo_chown = procdesc_chown, + .fo_sendfile = invfo_sendfile, .fo_flags = DFLAG_PASSABLE, }; diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index 2fcbf97..59b8995 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -88,7 +88,6 @@ static fo_poll_t vn_poll; static fo_kqfilter_t vn_kqfilter; static fo_stat_t vn_statfile; static fo_close_t vn_closefile; -extern fo_sendfile_t vn_sendfile; struct fileops vnops = { .fo_read = vn_io_fault, |