-
Notifications
You must be signed in to change notification settings - Fork 68
feat(storage): directly format devices #2559
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
Merged
ancorgs
merged 20 commits into
agama-project:master
from
joseivanlopez:ui-format-device
Jul 16, 2025
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
518ff2a
web: add page for formatting a device
joseivanlopez b57e0df
web: adapt content for formatted devices
joseivanlopez 418383b
web: allow selecting all available devices
joseivanlopez 1cf1a74
web: Adjustment in the logic to show the DoNotUse option
ancorgs 511d2e4
web: Sorter device name in a selection box
ancorgs cd1e93d
web: Adapt SearchedDeviceMenu to formatted partitionables
ancorgs 32aa8aa
web: Headers for formatted partitionables
ancorgs c0d2103
web: Adapt switchSearched to handle formatted devices
ancorgs f92a1e5
web: Do not allow to select formatted disks for booting
ancorgs 8ab84cc
web: Do not allow to select formatted disk for LVM
ancorgs d4d7a6f
web: adapt tests
joseivanlopez f98790c
web: add tests
joseivanlopez 5bb9cca
web: Use a MenuButton also for unused drives/mdRaids
ancorgs 6e7ad57
web: (Temporarily) remove button to delete a filesystem definition
ancorgs a70a488
web: More consistent texts accross similar forms
ancorgs 2225233
web: fix useVolume hook
joseivanlopez d1b6f98
web: More precise texts at ConfigureDeviceMenu
ancorgs 21eeb71
web: Small fix at LogicalVolumePage
ancorgs fe2db58
web: More consistent string when formatting a whole device
ancorgs 0852f87
Changelog
ancorgs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,9 @@ | ||
| ------------------------------------------------------------------- | ||
| Wed Jul 16 14:46:32 UTC 2025 - Ancor Gonzalez Sosa <[email protected]> | ||
|
|
||
| - Allow to use a whole disk or MD RAID without a partition table | ||
| (gh#agama-project/agama#2559). | ||
|
|
||
| ------------------------------------------------------------------- | ||
| Mon Jul 14 16:02:55 UTC 2025 - José Iván López González <[email protected]> | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| /* | ||
| * Copyright (c) [2025] SUSE LLC | ||
| * | ||
| * All Rights Reserved. | ||
| * | ||
| * This program is free software; you can redistribute it and/or modify it | ||
| * under the terms of the GNU General Public License as published by the Free | ||
| * Software Foundation; either version 2 of the License, or (at your option) | ||
| * any later version. | ||
| * | ||
| * This program is distributed in the hope that it will be useful, but WITHOUT | ||
| * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| * more details. | ||
| * | ||
| * You should have received a copy of the GNU General Public License along | ||
| * with this program; if not, contact SUSE LLC. | ||
| * | ||
| * To contact SUSE LLC about this file by physical or electronic mail, you may | ||
| * find current contact information at www.suse.com. | ||
| */ | ||
|
|
||
| import React from "react"; | ||
| import UnusedMenu from "~/components/storage/UnusedMenu"; | ||
| import FilesystemMenu from "~/components/storage/FilesystemMenu"; | ||
| import PartitionsMenu from "~/components/storage/PartitionsMenu"; | ||
| import SpacePolicyMenu from "~/components/storage/SpacePolicyMenu"; | ||
| import { model, StorageDevice } from "~/types/storage"; | ||
|
|
||
| type DeviceEditorContentProps = { deviceModel: model.Drive | model.MdRaid; device: StorageDevice }; | ||
|
|
||
| export default function DeviceEditorContent({ | ||
| deviceModel, | ||
| device, | ||
| }: DeviceEditorContentProps): React.ReactNode { | ||
| if (!deviceModel.isUsed) return <UnusedMenu deviceModel={deviceModel} />; | ||
|
|
||
| return ( | ||
| <> | ||
| {deviceModel.filesystem && <FilesystemMenu deviceModel={deviceModel} />} | ||
| {!deviceModel.filesystem && <PartitionsMenu device={deviceModel} />} | ||
| {!deviceModel.filesystem && <SpacePolicyMenu modelDevice={deviceModel} device={device} />} | ||
| </> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Good catch :)