Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1064123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:53:03+00:00 2026-05-16T18:53:03+00:00

The man page for the splice system call says that splice may fail and

  • 0

The man page for the splice system call says that splice may fail and set errno to EINVAL if:

Target file system doesn’t support splicing; neither of the descriptors refers to a pipe; or offset given for non-seekable device

Which file systems support splicing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T18:53:04+00:00Added an answer on May 16, 2026 at 6:53 pm

    My original answer was partially incorrect, this is a major rewrite.

    Linux 2.6.30.10 and below

    In Linux 2.6.30.10 and older, splice returns EINVAL when the source or target filesystem does not support splicing. Here are the filesystems that do support splicing:

    • in read mode: adfs, affs, afs, bfs, btrfs, coda, ecryptfs, exofs, ext2, ext3, ext4, fat, fuse, hpfs, jffs2, jfs, minix, nfs, nilfs2, ntfs, ocfs2, omfs, qnx4, reiserfs, smbfs, sysv, ubifs, udf, ufs.
    • in write mode: exofs, ext2, ext3, ext4, jfs, ocfs2, reiserfs, ubifs.

    Details follow. Support for splicing in determined in the do_splice_to() function in the “file to pipe” case and in the do_splice_from() function in the “pipe to file” case. It is done by checking whether the relevant struct file_operations contains .splice_read or .splice_write, respectively. In order to produce the above lists of filesystems, I’ve grepped fs/*/file.c for .splice_read and .splice_write.

    Linux 2.6.31 and above

    Starting with Linux 2.6.31, all the filesystems support splicing both in read and write modes.

    Details follow. When a filesystem does not have .splice_read or .splice_write in its struct file_operations, a fallback function is used: default_file_splice_read and default_file_splice_write, respectively. See do_splice_to() and do_splice_from() for implementations. Note: EINVAL may still be returned for other reasons listed in the documentation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After reading the mkdir(2) man page for the Unix system call with that name,
In the man page for the system call write(2) - ssize_t write(int fd, const
Reading through the man page of the Linux system call sendfile , I am
The man page of epoll_ctl() says about EPOLLPRI : There is urgent data available
The man page for mlockall on my kernel 3.0 says mlockall() locks all pages
The man page says: fgets() return s on success, and NULL on error or
Even though the linux man page for wait 1 explains very well that you
I looked at bash man page and the [[ says it uses Conditional Expressions.
There is a plugin for vim ftplugin/man.vim : https://github.com/idbrii/vim-man/blob/master/ftplugin/man.vim man page filetype plugin file
GNU xargs has option '-x'. The man page says: -x Exit if the size

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.