summaryrefslogtreecommitdiff
path: root/interface-definitions/include/interface
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-10-07 19:57:03 +0200
committerChristian Breunig <christian@breunig.cc>2026-10-31 09:58:29 +0000
commit30b999c5a2b6ce67734e882942609a5e4a4d84cf (patch)
tree2f8b1fb25ab18a3a6361d4458b406932b1386a4f /interface-definitions/include/interface
parent710d0a19b25262fe77a6ebd4a62a5c427a1efa6f (diff)
downloadvyos-1x-30b999c5a2b6ce67734e882942609a5e4a4d84cf.tar.gz
vyos-1x-30b999c5a2b6ce67734e882942609a5e4a4d84cf.zip
interfaces: T3871: make the interface map survive a crash, not just a rename
Replacing the map was atomic but not durable: neither its contents nor the rename were forced to the disk, so a machine losing power shortly after a boot could come back to an empty or truncated file. Names are then derived from the hardware again, which only gives the same answer where they happened to follow slot order - anywhere else an address moves to another cable. Force the contents out before the file is put in place, and the directory entry after, so what comes back is either the names it had before or the ones just written.
Diffstat (limited to 'interface-definitions/include/interface')
0 files changed, 0 insertions, 0 deletions