Repository navigation
fix-destination: cel nazwa zastępuje cel pod adresem i zwalnia wpis z bootptab - #85
Merged
Merged
Conversation
…zwalnia wpis z /etc/bootptab Przy celu Target.name adres statyczny (alias) był uznawany za poprawny (reserveOnly), więc polecenie nic nie robiło. Teraz alias liczy się tylko dla celu adresowego; cel nazwa daje replace(id). To samo okno administratora usuwa linię z MAC maszyny z /etc/bootptab (na końcu łańcucha). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
02.12 na prawdziwym Macu (app 1.3.50)
cloudmachine-agent fix-destinationwypisało "Time Machine already points at the machine (lima-cmsmb.local)." i nic nie zrobiło, atmutil destinationinfonadal pokazywało cel pod adresem DHCP (statyczny alias maszyny).Przyczyna:
plan(destinations:address:alias:)uznawał cel pod statycznym aliasem za poprawny (.reserveOnly), arunwychodził wcześnie przy.reserveOnlybez MAC. Dla celu-nazwy (Target.name) adres, także alias, jest dokładnie tym, co ma zostać zastąpione.Zmiany
plani wrun, także przy weryfikacji po zmianie). Cel-nazwa + cel pod IP (alias lub nie) daje.replace(id:): ten sam udział,removedestinationstarego id,setdestination -a, ponownesetquota, z odłączeniem obrazu starego hosta (jak w Time Machine po nazwie mDNS zamiast adresu DHCP #84). Cel już pod nazwą = bez zmian./etc/bootptab. Przy celu-nazwie to samo polecenie w jednym oknie administratora usuwa z/etc/bootptabtylko linię z MAC maszyny (reszta pliku, komentarze i nagłówek zostają). Krok jest ostatni w łańcuchu, więc nieudana zmiana Time Machine nie zwalnia rezerwacji. Gdy w pliku nie ma wpisu maszyny, nie ma okna ani zmian. Przy celu-adresie zachowanie bez zmian (rezerwacja jak dotąd).runPreferringName, więc poprawka obejmuje obie.VMStatus.isMachineSharebez zmian (dopasowuje alias, co jest poprawne dla stanu "TM wskazuje maszynę"; problem był w planie).Testy
Nowe (najpierw czerwone): alias + nazwa -> replace; cel już pod nazwą (też z aliasem) -> reserveOnly; cel-adres bez zmian;
runzastępuje cel pod aliasem; zwolnienie wpisu (awk uruchamiany na przykładowym pliku), kolejność kroków, brak operacji gdy nie ma wpisu. Pakiet: 1152 testy, 3 błędy (TMBundleScriptTestsx2,VMEmbedTests), te same na czystym main (zależne od środowiska, niezwiązane).swift-format lint --strictczysty.Historia TM: replace zachowuje udział i dane na maszynie; po zmianie URL Time Machine może potraktować cel jako nowy, dlatego ponownie ustawiany jest limit (jak w #84). Czy macOS dopasuje istniejący bundle po nazwie, trzeba sprawdzić na Macu.
🤖 Generated with Claude Code