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/fs/devfs | |
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/fs/devfs')
-rw-r--r-- | sys/fs/devfs/devfs_vnops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c index 7da9b11..468e76b 100644 --- a/sys/fs/devfs/devfs_vnops.c +++ b/sys/fs/devfs/devfs_vnops.c @@ -1696,6 +1696,7 @@ static struct fileops devfs_ops_f = { .fo_close = devfs_close_f, .fo_chmod = vn_chmod, .fo_chown = vn_chown, + .fo_sendfile = vn_sendfile, .fo_flags = DFLAG_PASSABLE | DFLAG_SEEKABLE }; |