Skip to content

Adding storage information#32

Merged
ancorgs merged 4 commits intomainfrom
storage
Dec 17, 2024
Merged

Adding storage information#32
ancorgs merged 4 commits intomainfrom
storage

Conversation

@ancorgs
Copy link
Contributor

@ancorgs ancorgs commented Dec 12, 2024

Most of the user-facing documentation of the storage area was directly at the Agama source code repository and interleaved with development notes and documentation of the design decisions.

This pull request does two things:

  • Moving all the user-facing documentation to this repository.
  • Updating the web UI documentation to reflect what we are currently developing, instead of the current interface which is in the process of being replaced.

See the preview for easier review.

This goes together with agama-project/agama#1841, which is the counterpart at the Agama repository.

@ancorgs ancorgs force-pushed the storage branch 4 times, most recently from dd82ce9 to afcb8f9 Compare December 16, 2024 15:39
@ancorgs ancorgs changed the title WIP: Adding storage information Adding storage information Dec 16, 2024
@ancorgs ancorgs marked this pull request as ready for review December 16, 2024 15:58
}
```

## Searching Existing Devices
Copy link
Contributor

Choose a reason for hiding this comment

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

IMHO, the document is a bit difficult to follow. It starts explaining advances features like search, alias, size formats, etc. I suggest to go from the most basic to the most advanced, for example:

  • Drives:
    • Introduce drive and partition properties, without details about advanced things like search, etc.
  • LVM:
    • Introduce VG and LV properties.
  • Raids?
  • Search and alias in detail
    • More examples about LVM using searches over partitions, etc.
  • Size in detail
  • Encryption in detail
  • Boot
  • Reusing devices
  • Generators
    • Automatically generate partitions
    • Automatically generate logical volumes
    • Automatically generate physical volumes
    • Automatically generate raids
  • Examples
    • Install in a disk
    • Install using LVM
    • Reinstall (reuse partitions)
    • Install using RAID
    • ...

And, in general, I would avoid that "formal specification" along the document. That format was useful to initially sketch the schema up, but I think it does not give any value beyond the schema itself.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As discussed offline. Too much for this pull request.

I removed the formal specification and restructured a bit the information to start with a couple of simple examples. But many of the other suggested improvements will have to wait for subsequent pull requests.

Copy link
Contributor

@imobachgs imobachgs left a comment

Choose a reason for hiding this comment

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

The documentation looks great, but I have the impression that it might be too much for a user. Perhaps this document is just fine and we just need another one which is oriented to use cases.


The entries for both `encryption` and `filesystem` contain a flag `reuse` with a default value of
false. It can be used in combination with `search` to specify the device must not be re-encrypted
or re-formatted.
Copy link
Contributor

Choose a reason for hiding this comment

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

Please, add an example.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the future. ;-)

{
"devices": [
{
"generate": {
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not sure whether the concept of generation ("generate") deserves some introduction.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe... for a future pull request. :-)

@ancorgs ancorgs merged commit 63fd357 into main Dec 17, 2024
@ancorgs ancorgs deleted the storage branch December 17, 2024 13:48
ancorgs added a commit to agama-project/agama that referenced this pull request Dec 17, 2024
## Problem

The storage documentation was:

- partially outdated,
- describing the current interface and not the new we are creating,
- not properly split between user documentation (which should be at
[agama-project.github.io](https://agama-project.github.io/docs/user))
and development notes.

## Solution

All the user-facing documentation was added to the proper documentation
through this pull request:
agama-project/agama-project.github.io#32

This is the complementary pull request to remove the information that
was moved and reorganize the one that will stay here (basically
development notes and rational for the decisions).
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.

3 participants