Skip to content

Instantly share code, notes, and snippets.

@joseivanlopez
Last active August 28, 2018 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joseivanlopez/a17b304a5c5014d432e4c524e0402a35 to your computer and use it in GitHub Desktop.
Save joseivanlopez/a17b304a5c5014d432e4c524e0402a35 to your computer and use it in GitHub Desktop.

Format Disks and add partitions to MD RAIDs

Option 1

Disks view (named as "Hard Disks")

  • Redefine "Edit" button:
    • It should open the dialog to format and set mount point if the selected device can be formatted.

RAIDs view

  • Wizard lauched by "Add RAID" button should not allow to format/set mount point
  • Add button "Add Partition" (similar to Disks view)

RAID view (when we are in one specific RAID)

  • Add "Partitions" tab (now it has "Overview" and "Used Devices" tabs)
    • Add "Add", "Edit", "Move", "Resize", "Delete" buttons that act over a partition (similar to "Partitions" tab in "Disk view").
    • Add "Expert" button that allows to "Create Partition Table" and "Clone Disk" (similar to Disks).
  • Remove buttons from "Overview" tab
    • "Overview" has three buttons to modify the MD (Edit, Resize, Delete)
    • This actions can be performed in the general "RAIDs view" (similar to Disks).

Option 2

  • Rename "Hard Disks" section as "Devices"
  • Remove section "RAID"

Disks view (new "Devices" section)

  • Add "Add RAID" button
  • Redefine "Edit" button:
    • It should open the dialog to format and set mount point if the selected device can be formatted.
  • Add "Partitions" button
    • This button goes to the "Partitions" tab of a specific device (similar to current "Edit" button when used with a Disk).

Disk view (when we are in one specific device)

  • When selected device is a MD RAID
    • Add "Used Devices" tab
    • "Overview" tab should show "Device", "RAID" and "File System" sections
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment