Rename host library to master throughout
The two libraries are now "master" and "slave" everywhere: UI text, API JSON fields (master_root, rel_master, master_size, ...), Go identifiers, database columns, quality verdicts, quarantine subfolders and docs. Existing databases are upgraded by a new migration that renames the columns in place and rewrites stored "host" values, so pairs, history, cached verdicts and restorable quarantine entries carry over. Network "host" usages (SplitHostPort, the Origin/Host check) are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d06b6d546d
commit
5b088bb4a6
19 files changed
+339
-326
No files matched your search
@@ -32,8 +32,8 @@ export function ActivityPage() {
|
||||
}
|
||||
|
||||
const actionLabel: Record<Operation["action"], string> = {
|
||||
link: "Linked slave → host",
|
||||
promote: "Promoted slave → host",
|
||||
link: "Linked slave → master",
|
||||
promote: "Promoted slave → master",
|
||||
build: "Built into slave",
|
||||
remove: "Removed from slave",
|
||||
};
|
||||
@@ -97,7 +97,7 @@ export function OpsTable({ pairId, quarantine }: { pairId?: number; quarantine?:
|
||||
<div className="truncate mono text-[13px]" title={o.rel_slave}>
|
||||
{o.rel_slave}
|
||||
</div>
|
||||
{o.rel_new && o.rel_new !== o.rel_slave && o.rel_new !== o.rel_host && (
|
||||
{o.rel_new && o.rel_new !== o.rel_slave && o.rel_new !== o.rel_master && (
|
||||
<div className="truncate text-xs text-muted mono">now {o.rel_new}</div>
|
||||
)}
|
||||
{o.error && <div className="text-xs text-red-300">{o.error}</div>}
|
||||
@@ -172,9 +172,9 @@ function undoText(o: Operation) {
|
||||
? "The original slave file is restored from quarantine and the hardlink is removed."
|
||||
: "The slave gets its own independent copy of the file again, which uses disk space.";
|
||||
case "promote":
|
||||
return "The original host file is restored from quarantine. The slave keeps its own file.";
|
||||
return "The original master file is restored from quarantine. The slave keeps its own file.";
|
||||
case "build":
|
||||
return "The hardlink is removed from the slave library. The host file is not affected.";
|
||||
return "The hardlink is removed from the slave library. The master file is not affected.";
|
||||
case "remove":
|
||||
return "The hardlink is recreated in the slave library.";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user