{"id":24998908,"url":"https://github.com/thiswillbeyourgithub/btrfs_cow_disabler","last_synced_at":"2025-03-29T18:11:56.090Z","repository":{"id":275444992,"uuid":"926095008","full_name":"thiswillbeyourgithub/BTRFS_CoW_Disabler","owner":"thiswillbeyourgithub","description":"A Zsh script to disable Btrfs Copy-on-Write (COW) by copying data to a new file with the `+C` attribute; **use with caution, as it's untested and may contain bugs.**","archived":false,"fork":false,"pushed_at":"2025-02-02T15:04:19.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T16:19:14.073Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thiswillbeyourgithub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-02T14:45:34.000Z","updated_at":"2025-02-02T15:04:22.000Z","dependencies_parsed_at":"2025-02-02T16:19:17.414Z","dependency_job_id":null,"html_url":"https://github.com/thiswillbeyourgithub/BTRFS_CoW_Disabler","commit_stats":null,"previous_names":["thiswillbeyourgithub/btrfs_cow_disabler"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiswillbeyourgithub%2FBTRFS_CoW_Disabler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiswillbeyourgithub%2FBTRFS_CoW_Disabler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiswillbeyourgithub%2FBTRFS_CoW_Disabler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiswillbeyourgithub%2FBTRFS_CoW_Disabler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thiswillbeyourgithub","download_url":"https://codeload.github.com/thiswillbeyourgithub/BTRFS_CoW_Disabler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246223331,"owners_count":20743167,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-04T18:52:12.400Z","updated_at":"2025-03-29T18:11:56.061Z","avatar_url":"https://github.com/thiswillbeyourgithub.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Btrfs COW Disabler\n\nThis script disables Copy-on-Write (COW) for files or directories on a Btrfs filesystem by copying the data to a new file with the `+C` attribute set.\n\n## ⚠️ **Important Note**\nThis script **has not been thoroughly tested** and may contain bugs. Use it at your own risk. Always back up your data before running it.\n\n**Personal Experience:** I used this script for a short period and it seemed to work fine, but I ultimately encountered issues with Btrfs itself and stopped using it in the long run. Your mileage may vary.\n\n## Usage\n```bash\n./btrfs_cow_disabler.zsh \u003csource_file_or_dir\u003e \u003ctemporary_file\u003e\n```\n\n- `\u003csource_file_or_dir\u003e`: The file or directory to disable COW for.\n- `\u003ctemporary_file\u003e`: A temporary file or location used during the process.\n\n## How It Works\n1. Creates a temporary file with the `+C` attribute (disables COW).\n2. Copies the original file's data to the temporary file.\n3. Verifies the checksum to ensure data integrity.\n4. Atomically moves the temporary file back to the original location.\n\n## Requirements\n- `zsh` shell\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiswillbeyourgithub%2Fbtrfs_cow_disabler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthiswillbeyourgithub%2Fbtrfs_cow_disabler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiswillbeyourgithub%2Fbtrfs_cow_disabler/lists"}