nextcloud / nextcloud/nextcloudpi

Improve nc-swapfile.sh

Open
#1,500 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue
Dominant language
Shell
Stars
2.9k
Forks
318
PR merge metrics
No merged PRs in 30d

Description

Description
Hi everyone,

I use btrfs on my external drive. When I want to switch the location of my swap file it tells me "BTRFS doesn't support swapfiles. You can still use nc-zram". As far as I know btrfs supports swap files for some time now. Maybe the script should be edited accordingly.

Thank you.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with nc-swapfile.sh and trace the condition that reports BTRFS does not support swapfiles. Check the current supported behavior for BTRFS before changing the script. Done means the script handles supported BTRFS swapfile locations without the outdated warning while retaining appropriate behavior for unsupported cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.