plan9front/rc
Sigrid Solveig Haflínudóttir 390c71f0c7 sdnvme, fshalt: turn disks off on fshalt
MNT Reform's power rails are switched off abruptly on shutdown
which causes an "unsafe" shutdown on nvme. This may result in
loss of valid data in the volatile write cache, which is never
going to be synced in this case. This problem has been reported
on forums about Linux too, including actual filesystem errors
resulting from that behavior.

Notify nvme about a shutdown and wait up to 3s before disabling
the controller. This resulted in "unsafe shutdowns" nvme's counter
to never increase on fshalt.
2023-05-24 16:14:33 +00:00
..
bin sdnvme, fshalt: turn disks off on fshalt 2023-05-24 16:14:33 +00:00
lib rc: use /fd/0 for standard-input instead of '#d/0' in non-interactive mode 2022-12-12 21:21:22 +00:00