Skip to content
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

Implement Transactional flag #789

Merged
merged 13 commits into from Oct 5, 2023
Merged

Implement Transactional flag #789

merged 13 commits into from Oct 5, 2023

Conversation

jreidinger
Copy link
Member

@jreidinger jreidinger commented Oct 3, 2023

Problem

There is no indication if btrfs volume will be read only or not.

Solution

Implement it.

Testing

  • Tested manually

Screenshots

Note: No suitable icon in materials not found ( at least I do not like any of them ).

read_only_volume

@jreidinger jreidinger force-pushed the transactional_volume branch 2 times, most recently from 74bb276 to a262fcb Compare October 3, 2023 20:39
@coveralls
Copy link

coveralls commented Oct 3, 2023

Coverage Status

coverage: 75.114% (+0.006%) from 75.108% when pulling 3b5b5ba on transactional_volume into 23082d7 on master.

Copy link
Contributor

@dgdavid dgdavid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So far, LGTM. But have a look to these console.log. I think they are no really needed :)

web/src/components/storage/ProposalVolumes.jsx Outdated Show resolved Hide resolved
web/src/components/storage/ProposalVolumes.jsx Outdated Show resolved Hide resolved
For checking that 'with snapshots' and 'read-only' legends are properly
rendered according to the Btrfs volume configuration.
@dgdavid
Copy link
Contributor

dgdavid commented Oct 4, 2023

Tested manually

@jreidinger I have added few unit tests for the UI part. Hope you don't mind. Please, have a look.

Copy link
Contributor

@dgdavid dgdavid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@dgdavid dgdavid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I think this one deserves an entry in the changelog files

@ancorgs
Copy link
Member

ancorgs commented Oct 4, 2023

I have concerns regarding the wording. This is not exactly a "read-only" filesystem.

I will elaborate (entering a meeting now)

@jreidinger
Copy link
Member Author

@ancorgs OK, I will wait.

@ancorgs
Copy link
Member

ancorgs commented Oct 4, 2023

volume.btrfs.read_only? does not really mean the file-system is read-only.

To be precise, it means the root subvolume of the Btrfs file-system is read-only. But that does not apply to the whole file-system. Other subvolumes on the same Btrfs file-system (like /home, /opt, /srv or /var) are still writable.

If I see a Volume with an attribute ReadOnly set to true or if a see a read-only label in the table of volumes in the UI, I would expect the whole volume/filesystem to be read-only. Maybe we even have an use-case for that in the future.

I don't know how to name the D-Bus property or the label in the UI, but I don't like the current ReadOnly and read-only. Maybe we should try with "transactional".

@jreidinger
Copy link
Member Author

@ancorgs OK, makes sense. So lets use transactional name instead. I am just not sure if it btrfs exclusive

Copy link
Member

@ancorgs ancorgs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jreidinger
Copy link
Member Author

@dgdavid Can you please also recheck? as it looks like your requests to change blocks merge

Copy link
Contributor

@dgdavid dgdavid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just check the comment for translators

web/src/components/storage/ProposalVolumes.jsx Outdated Show resolved Hide resolved
Co-authored-by: David Díaz <1691872+dgdavid@users.noreply.github.com>
@jreidinger jreidinger merged commit 31a9fce into master Oct 5, 2023
12 checks passed
@jreidinger jreidinger deleted the transactional_volume branch October 5, 2023 11:26
@dgdavid dgdavid changed the title Implement read only flag Implement _Transactional_ flag Oct 5, 2023
@dgdavid dgdavid changed the title Implement _Transactional_ flag Implement Transactional flag Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants