Repository navigation
Storage Gui M810
Published documentation mirror. Edit the source through a repository PR. See Project status.
Issue #149; bounded desktop preview and administrator-review draft candidate. M6.10 is a native split-store foundation, not an operational manager storage configuration API. This increment does not introduce privileged activation, manager-authorized change submission or migration.
UX9 adds optional native desktop helpers and a private, durable desired path pair. Only capacity previews and unsaved drafts expire or clear; saved locations survive navigation and restart. They do not activate evidence writers. The historical M8.10 workflow below describes the original preview-only foundation.
Open Settings (Ctrl+7), then Storage locations — desktop preview. Since UX8,
choose independent raw and indexed directories with their own native-preferred folder
pickers, or enter each absolute path and press Enter / Check again. The former mount
refresh and child-directory browsing controls are superseded; their bounded native
worker contracts remain tested. Selection is not approval. The root mount cannot be
selected as a storage directory. The desktop picker may activate mounts or contact
network servers through the platform; the inspection worker still refuses dormant automounts.
The desktop preview includes ext4, XFS, Btrfs and F2FS plus already-mounted
NTFS (kernel ntfs / ntfs3), generic fuseblk (commonly NTFS-3G),
FAT (vfat / msdos), exFAT, NFS (nfs / nfs4) and SMB/CIFS
(cifs / smb3 / legacy smbfs, including Samba servers). Generic FUSE
mounts are not accepted and fuseblk is not proof of underlying NTFS.
The original four local filesystem classes are qualified for the
M6.10 production writer. UX19.1 kernel NTFS3 named publication passed actual driver qualification. The Linux 7.0 legacy ntfs alias is read-only when present and can report NTFS3 magic; inspection recognizes it but writer validation requires an allowed mount name as well as magic. Direct NTFS-3G remains inspection-only. An externally provisioned native container candidate is described in UX19; it does not enable generic FUSE evidence writes. Inspection is not evidence of write, durability or storage approval.
Overlay and tmpfs are not candidate volumes. A tmpfs ancestor (e.g. /run)
is allowed for an already-mounted removable filesystem; the root overlay
ancestor remains a development traversal exception. Ambiguous stacked mounts and remote ancestors of nested mounts are refused. The UX19 initial candidate permits a verified already-mounted native descendant of an autofs mount, or one native mount stacked directly over an autofs trigger; unresolved triggers and inconsistent mount-ID ancestry remain refused.
An automount is a mount trigger, not a storage format. Mount discovery
reads metadata only; it never deliberately activates an unresolved autofs
path, mounts a device, initiates a share connection or requests credentials.
A previously mounted volume can be previewed if its mount is unambiguous
and its ancestors satisfy the traversal policy. Explicit browsing/inspection
of a network mount can send filesystem metadata requests to its server
using the OS's existing credentials. The mount table does not establish
that the server is within the LAN; use only trusted authorized shares.
This is mounted filesystem metadata, not a physical-drive inventory or
SMART health. Unmounted drives are not enumerated or mounted.
Inspect each candidate explicitly for the observed mount filesystem type, total and available bytes, a read-only mount flag, whether the directory is mode 0700 and owned by the desktop UID, reported free-inode availability and a 1 MiB reserve hint. UID, mode and inode hints may be synthesized or unavailable on some filesystems, not proof of actual privacy or durability. The available-byte snapshot is not a reservation; the manager's actual permissions, mount namespace, quota, selected locations, integrity and health remain unavailable. No claim of storage suitability or approved mount identity follows from the preview. Snapshots expire independently after 30 seconds; editing a path invalidates its preview and the request draft. No polling is performed. Clearing or leaving Settings drops choices, previews and drafts and cancels pending inspection.
Prepare an unsubmitted administrator-review draft to display the two independent candidate paths. Equal and lexically nested directories, relative paths, traversal, control characters and overlong paths are refused. For safe plain-text selection the GUI preview also excludes angle brackets and ampersands and non-ASCII paths; this is a narrower preview subset, not a new native storage policy. Drafting is deliberately possible for a syntactically valid path inaccessible to the desktop UID, because service-owned storage must not be made desktop-readable merely to request review. A draft is not a validated pair, may still refer to an alias or an unsupported volume, and is never submitted, persisted, copied automatically or used as a command. The analyst may manually communicate the draft to an authorized administrator through a trusted private channel. No actual location change or service authorization is available yet. Keep issue #149 open for that missing functionality.
The GUI launches only its own fixed read-only worker executable mode via QProcess with a three-second deadline; one operation at a time. Private paths are transferred over stdin, not process arguments, diagnostics or external notifications. The worker refuses UID 0. The worker reads at most 1 MiB of mountinfo (4096 mount records), exposes at most 64 choices and scans at most 4096 immediate directory entries. Unknown directory-entry types receive a bounded descriptor-relative metadata check without following symlinks or deliberately triggering automounts. Symlinks and known nested mount points are not offered as child choices. Excessive inventories refuse rather than silently truncate. The GUI bounds worker output and discards canceled results. The model stays busy until the worker terminal callback has drained output and published or discarded the response, including after cancellation. Process state alone is not a completion signal. A kernel I/O stall can delay child termination; no further operation is allowed while the child is active. There is no shell, application-initiated network session, mount action, privilege elevation, file creation or evidence access. Explicit filesystem operations on an existing network mount can cause kernel-mediated network I/O and may stall; the same worker deadline and output bounds apply. Known unsupported mount ancestors are refused before probing; filesystem/mount changes during resolution may cause failure or delayed I/O, not evidence writes. This preview is not the M6.10 unique-mount approval or a race-proof sandbox for arbitrary filesystem reads.
The worker resolves the selected mount using mountinfo and checks the actual ordinary statx mount ID and filesystem magic on opened descriptors. It uses openat2 without symlinks or magic links and forbids relative crossings from the selected mount root. It rechecks mount selection and directory identity before returning metadata. It never opens evidence files, instantiates the split writer or grants authority. Existing M6.10 unique mount ID, boot ID, private service ownership, descriptor-relative writes, locking, raw-first commitment, reserve, durability and failure rules remain unchanged. The preview includes the production filesystem-class allowlist but uses a separate additional preview-only policy and exact filesystem-name/magic matching.
knetsentry_storage_preview_contract is a native parser and policy regression
in all five desktop-enabled presets. knetsentry_gui_storage_preview_runtime
uses a disposable ordinary-user fixture and actual offscreen rendered controls
in the four non-sanitized desktop presets. It tests actual eligible capacity and filesystem identity
where available, or fail-closed unsupported filesystem behavior (not a positive
capacity pass), bounded browsing, independent candidate inspection, refusal of
symlinks/traversal/missing paths, overlap refusal, draft creation/invalidation,
explicit clear, navigation and canceled-result clearing, and no changes to
fixture storage or workspace preferences. Both native candidates are checked
independently, and rendered raw/index requests are alternated to verify that
one role does not overwrite the other. A new inspection after cancellation
must work without stale results. The local runner repeats the rendered
integration three times early. The prior M8.9 performance and all other gates
remain mandatory. Expected: 597 configured CTests, 81 structural verifiers,
182 consolidated gates with GUI review (181 without). Actual Qt compilation,
strict QML analysis, target tests and human visual qualification remain required.
The initial Ubuntu 26.04 Analysis build completed with zero unexpected
compiler diagnostics. 92 of 93 configured CTests passed, including the native
preview contract, M6.10 split-storage and M8.9 GUI performance integration.
Native eligible-filesystem capacity inspection passed, but the rendered
fixture failed at index-preview. The report ended with four passed gates,
one failed gate and one skipped remaining-qualification gate. The original
composite assertion does not establish the exact failing internal condition.
The correction removes the process-state/result-publication readiness gap, keeps canceled workers busy until terminal handling, waits for actual model completion, checks both native candidates independently and separates field, control, submission, completion and preview assertions. Fixed diagnostic outcome codes identify transport, validation and cancellation states without including paths or raw worker output. No retry, timeout extension or new authority was introduced in that first correction. Target Qt execution of the corrected revision remains required.
The index inspection button lacked the storageInspectIndex object name
required by the rendered test. This follow-up adds that identifier, extends
preview-only name/magic matching and tests the original writer-policy denial
for every added filesystem class. It exercises synthetic mount selection,
including removable mounts under tmpfs, remote mount selection and refusal of
known autofs/ambiguous/remote ancestors. The rendered worker protocol now
includes the observed filesystem name and the fixture verifies it against
mount metadata. Actual NTFS, FAT/exFAT and network-share positive operations
require representative mounted devices/shares; a native local fixture pass
plus policy-matrix tests do not establish actual per-driver interoperability.
No host mounts or network shares are created by the acceptance runner.
Operational support for these additional filesystem classes remains a requirement for #148/#149: qualify ownership/permissions, atomicity, locking, fsync/directory durability, capacity and limits, disconnection/reconnection, identity and recovery separately for raw and indexed storage. Network SQLite locking and synchronization vary by implementation; consider a local active index and separately verified remote archival/export rather than direct network database placement. See the SQLite network cautions and Linux autofs documentation.
For visual review the local runner prints two empty disposable candidate directories and checks that they remain empty. Use those paths; do not modify ordinary mounted locations. Verify the Settings controls and readable capacity hints, two independent candidate inputs, draft label, clearing and keyboard focus under light/dark appearance. Do not select or modify actual security evidence. Actual operational storage health, service-authorized preflight/change submission, stable cross-boot approval, production relocation, capacity forecasting and SMART/device diagnostics remain outstanding.
The cumulative three-commit candidate passed 182 consolidated local gates and all 597 configured CTests on 2026-11-28 UTC. Three repeated rendered storage integrations each passed positive eligible local-volume capacity inspection, filesystem identity/refusal, sequential completion and fixture invariance. Nine hosted checks and merge were reported successful. This does not qualify additional physical/network filesystems or any operational writer authority.
Direct FAT32/exFAT, legacy NTFS and NTFS-3G remain inspection-only. The qualified NTFS-3G alternative and candidate FAT alternatives use an externally provisioned protected native image mounted separately. Select its native directory, not the outer mount or image file. FAT32/exFAT actual container qualification is pending. See UX19.
The configured manager candidate now supports direct private vfat, exfat and block-backed fuseblk directory roles, using a separate trusted native authority. The read-only worker checks matching mount name/magic, private owner-only directory, writable access and (for fuseblk) a root-owned block source. This is candidate eligibility, not proof of durable publication, the NTFS-3G daemon or FAT32 subtype. Legacy read-only NTFS, remote filesystems and non-block FUSE remain refused. Existing native container alternatives remain supported. The first verified manager observation establishes persistent parent identity; subsequent reopen refuses media substitution. Actual target driver and desktop/manager qualification are required. See UX19.
The complete configured integration target baseline passed actual NTFS-3G, FAT32 and exFAT configured owner rotation, reconstruction and remount tests. Final qualification uses actual direct mount destinations in the existing read-only preview worker and rendered desktop-owned manager self-test: validate private direct directories without writes, refuse a now-missing unbound destination, restore the original mount, switch both primaries independently, verify committed direct authorities, history and persistence through restart. The preview remains read-only and is not a grant of persistent media identity. Applicable manual visual inspection remains separate. No GUI redesign, automatic provisioning or new production privilege is introduced. See UX19.
Direct NTFS-3G/FAT32/exFAT actual desktop/manager and authenticated operational qualification passed on the target, followed by the complete 286-gate local run, maintainer-reported nine hosted checks, visual review and merge. Network writers remain disabled. The new diagnostic network-profile worker operation reads only bounded mountinfo metadata, accepts already-mounted network automount topology only in this mode, screens conservative NFS and SMB candidate profiles, and emits a fixed label plus transient mount ID, never source or options. Normal remote writer validation/capacity fails before a known remote mount is opened. This is not server authorization, remote durability or general hung-I/O containment. No Settings control redesign or production network credentials/mount operation is introduced. See UX19.
UX19.3-B first candidate: scoped NFSv4 authority qualification does not alter Settings, preview writer eligibility or capacity sampling. The existing read-only network-profile mode remains metadata-only. Actual isolated NFSv4 fixture uses it to validate mount classification; no configured network writer selection, automatic mounting, server discovery or credentials management is enabled. See UX19.
Current scope supersedes earlier remote preview and diagnostic descriptions: NFS/NFS4 and SMB/CIFS mounts are refused before opening known remote paths in the desktop storage worker. Network-profile diagnostics and scoped remote writer qualification are inactive. Local mounted drives and supported local automounts remain eligible under existing policy. The operating system native chooser is not a sandbox or a guarantee against all kernel I/O. Network writer support remains deferred.
Source repository · Documentation index · License policy
Documentation mirror — CC-BY-SA-4.0. KnetSentry is not an official KDE project.