3 Commits
Author SHA1 Message Date
lotherkandClaude Sonnet 5.5 d53ea094e7 licence: CNCL for what Makronix wrote itself
LICENSE at the root; the 103 files new in ext/src/mcde (none was in the CDE
import) carry the CNCL line instead of the LGPL notice.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 11:48:02 +00:00
lotherk 6c98b9235d MCDE dtdiskutility: the reference's toolbar, tabs and detail block (t0137)
The window has the toolbar of the reference -- Mount, Unmount, **Eject**,
**Verify**, **Info**, **Log**, Refresh, Unlock -- and its four tabs:
First Aid, Erase, and **RAID** and **Restore**.  Under the list, a two-column
detail block shows what the chosen disk is: Device, Mount Point, Format,
Capacity, Available, Used, all from mcde_sys_disks (the used and free values
when it is mounted).

  * Eject unmounts and says the medium can be removed.  McdeSys has no eject
    ioctl yet (CDROMEJECT/DIOCEJECT); that is named here, not hidden.
  * Verify is the First Aid page's Verify Disk; Info opens a small window
    with the same values as the detail block; Log switches to First Aid and
    opens its report ("Show details" does the same by hand).
  * The RAID and Restore tabs say what they wait for: a set is made with
    RAIDframe or ccd(4) and raidctl(8), a restore copies with dump/restore
    or dd through McdeSys; neither is built.

Measured under Xvfb with xdotool:

  - docs/screenshots/leopard/Disk-Utility-mcde.png: the toolbar, the four
    tabs, the list of the host's disk, and the detail block with
    /dev/nvme0n1p1, /boot/efi, vfat, 1.0 GB, 1.0 GB available, 10 MB used;
  - Info shows the same values in a dialog ("Disk Utility");
  - Log brings First Aid and its report back, the status line says "Log";
  - RAID shows its notice;
  - a partition that holds the system has Eject insensitive, a partition
    that is not mounted has it insensitive too.

Not built (the task's VM part): Volume reparieren (fsck -y through McdeSys,
only on an unmounted, non-system partition), RAID/ccd sets, restoring and
images (vnconfig/makefs), burning.  A VM with a spare disk is needed for
their tests; they are named in the tabs and are the follow-up task.
2026-11-14 11:08:59 +00:00
lotherkandClaude Opus 5.5 5eee8d5d8f mcde: dtdiskutility, the disks of the computer
A program of its own: the drives on the left, each followed by its
partitions (label, or where mounted, and size); on the right the chosen
one's name, model, device, capacity, file system, mount point, used and
available, and a bar of how full it is; below two pages.  First Aid:
Verify Disk (fsck -n, changes nothing), Verify Permissions and Repair
Permissions (the system's files against /etc/mtree/set.*), with their
report.  Erase: a name and a format -- NetBSD FFS, MS-DOS FAT32, Linux
ext4 -- for a whole drive, after a warning that names the drive and says
everything on it is lost; a drive that holds the system is never offered.
The toolbar mounts and unmounts.  As a user it shows and verifies, and
Unlock... starts it again as root under su in a terminal.  All through
McdeSys.

Measured on Xvfb as a user (build/mcde-shots/du-*.png): the host's NVMe
drive with /boot/efi, /boot and the crypto partition; /boot chosen showed
ext4, 318 MB used, 603 MB available, "Holds the system" and the bar;
the Erase page offers the three formats and erases nothing for a
partition.  Not measured: mounting, verifying, erasing, repairing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 13:27:26 +00:00