-
Notifications
You must be signed in to change notification settings - Fork 126
[next] Add Read-Only Btrfs Snapshots Option (issue #332) #373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Do we need a warning if someone tries to use |
|
The shell argument description already clarifies that this feature is specifically for
Btrfs, and I believe that users familiar with rsync will understand that
it doesn't have a "read-only" concept. However, if necessary, perhaps
consider changing the argument name to '--btrfs-readonly'?
|
|
Please do NOT make snapshots read-only, as this will basically break "grub-btrfs", and prevent the ability to boot into a snapshot. Or if you DO make them read-only, then there should be a separate set of snapshots that are read-write, but I think that would be over-complicating things. At best make this change optional please. |
i think having it optional would be ideal |
I agree with making it optional, but I still recommend keeping read-only as the default behavior, a "writable snapshot" contradicts the design purpose of snapshot (frozen disk state). |
|
One can always change the "read-only-nes" of a snapshot by either
I think having an option to set the value for all new snapshots (default to ro) and having the option to toggle a snapshot with the context menu would be the best option for everybody.
commit 797d8c2 makes it an option in the settings. |
|
I'd prefer it keep the current behavior by default, or else there should be a way in the ui to change it (context menu), and something other than the comment field indicating that it's read-only (Maybe an additional tag?) |
| public void refresh(){ | ||
|
|
||
| opt_btrfs.active = App.btrfs_mode; | ||
| opt_btrfs_readonly.active = App.btrfs_readonly; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need to be guarded by if (opt_btrfs.active) {} or else it throws a runtime warning. What I'd prefer is to always add the widget, but mark it insensitive (grey it out) - like we already do for the btrfs radio button:
https://github.com/linuxmint/timeshift/pull/373/files#diff-4a9255872e366bab354c5ddc6d435d03d84ae8b736856a284092dc137ff21257R101-R104
|
Thanks for the info. It sounds like read-only should just be the norm. Is there any argument to let a user see this state or modify it in timeshift? Btrfs-assistant seems a bit power-user-oriented, and timeshift is more about simple backups and restores. It doesn't need to become a btrfs management tool (also, it looks like btrfs-assistant is becoming available on more distributions, including Mint). |
Since Timeshift is aimed at ease of use, I see no reason to expose this detail to the user. What a typical Timeshift user does is simply create and restore snapshots. For the user, this change would have zero impact, while internally it would make snapshots safer. |


Adds an option to create read-only Btrfs snapshots by default. Resolves #332