Skip to content

Commit efccecb

Browse files
mbeczynskiclaude
andcommitted
fix(vm): track smb-throttle with the other services
vm-status, backup-health and the app now show and check the SMB shaper; it was installed by the template but missing from VMLayout.services. Checked against the live machine after its restart (all five active). The live machine also got the template's portForwards ignore rule: before it, limactl published rclone's rc (127.0.0.1:5572, no auth) on the Mac's localhost; after a restart the port is closed on the Mac and still answers inside the machine. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AU1MhxJW1e9oTB2XvjX8WT
1 parent 71697d2 commit efccecb

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎mac-app/Sources/CloudMachineCore/VMLayout.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public enum VMLayout {
3939
}
4040

4141
/// The systemd units the share depends on, in start order.
42-
public static let services = ["rclone-tm", "punchfs", "tm-bands-bind", "smbd"]
42+
public static let services = ["smb-throttle", "rclone-tm", "punchfs", "tm-bands-bind", "smbd"]
4343

4444
/// Host-side state: `~/.cloudmachine/vm`.
4545
public static var hostDir: URL {

‎mac-app/Tests/CloudMachineAppTests/AppStatusFixtures.swift‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ extension MachineStatus {
1010
machine.state = .running
1111
machine.address = "192.168.64.10"
1212
machine.services = [
13-
"rclone-tm": "active", "punchfs": "active", "tm-bands-bind": "active", "smbd": "active",
13+
"smb-throttle": "active", "rclone-tm": "active", "punchfs": "active",
14+
"tm-bands-bind": "active",
15+
"smbd": "active",
1416
]
1517
machine.reading = VMLayout.Reading(
1618
buffer: VMLayout.BufferStats(

‎mac-app/Tests/CloudMachineAppTests/VMLayoutTests.swift‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ final class VMLayoutTests: XCTestCase {
120120
/// never failed; a unit nobody reported is unknown, not fine.
121121
func testServicesVerdict() {
122122
var services = [
123-
"rclone-tm": "active", "punchfs": "active", "tm-bands-bind": "inactive", "smbd": "active",
123+
"smb-throttle": "active", "rclone-tm": "active", "punchfs": "active",
124+
"tm-bands-bind": "inactive",
125+
"smbd": "active",
124126
]
125127
XCTAssertEqual(VMStatus.servicesHealthy(services), true)
126128
services["tm-bands-bind"] = "failed"

0 commit comments

Comments
 (0)