Skip to content

[FR] nullfs backend #9037

Closed
Closed

Description

@hunshcn

The associated forum post URL from https://forum.rclone.org

https://forum.rclone.org/t/dev-null-as-a-local-filesystem-for-rclone/5573

What is your current rclone version (output from rclone version)?

1.72.0

What problem are you are trying to solve?

It is difficult for rclone to test the download speed of a remote storage which has higher performance than localfs. The most ideal way is to use /dev/null (io.Discard) as dst. But at present, rclone does not have this method.

How do you think rclone should be changed to solve that?

can we impl a nullfs. and also use /dev/null as nullfs alias

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Activity

  1. darthShadow commented on Dec 13, 2025

    @darthShadow
    Member

    Something like this may work:

    rclone -P cat remote:/path/to/file --discard
  2. hunshcn commented on Dec 14, 2025

    @hunshcn
    ContributorAuthor

    Something like this may work:

    rclone -P cat remote:/path/to/file --discard

    but cannot with --transfers

  3. ncw commented on Dec 14, 2025

    @ncw
    Member
  4. hunshcn commented on Dec 14, 2025

    @hunshcn
    ContributorAuthor

    We have the memory backend which might be useful for you: https://rclone.org/memory/

    Memory backend is likely to lead to oom.

    If memory backend supports --memory-discoard option, this may be an ideal nullfs.

  5. added a commit that references this issue on Dec 14, 2025
    ab07df4
  6. ncw commented on Dec 14, 2025

    @ncw
    Member

    I guess adding a --memory-discard option might be easier than writing a nullfs backend.

    What would you suggest that option did? Ignore all writes completely? That is likely to upset rclone transfers I think.

    Or possibly create files of the given size which don't actually exist and would give an error if read. That might be a better option.

    I tried implementing this here

    v1.73.0-beta.9360.ab07df40a.fix-9037-memory-discard on branch fix-9037-memory-discard (uploaded in 15-30 mins)

    Easiest way to use it is to use :memory,discard:bucket

    Let me know what you think

  7. added theissue type on Dec 14, 2025
  8. hunshcn commented on Dec 14, 2025

    @hunshcn
    ContributorAuthor

    I think so. Creating files of the given size which don't actually exist and giving an error if read will be better.

    I have tried this branch. So good.

  9. hunshcn commented on Dec 17, 2025

    @hunshcn
    ContributorAuthor

    hope merging into master

  10. added this to the v1.73 milestone on Dec 17, 2025
  11. ncw commented on Dec 17, 2025

    @ncw
    Member

    Thanks for testing :-)

    I've merged this to master now which means it will be in the latest beta in 15-30 minutes and released in v1.73

  12. added a commit that references this issue on Dec 17, 2025
    3a6e07a
  13. added 2 commits that reference this issue on Jan 21, 2026
    b45a627
    f301ea1
  14. added a commit that references this issue on Feb 14, 2026
    d9de6c5
  15. added a commit that references this issue on Jul 20, 2026
    8c7d3b3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions