diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-08-11 16:27:43 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-08-11 16:29:45 +0200 |
commit | 9049b963b6023ef6d7bd3f8c81ef5ab1f3b43fd3 (patch) | |
tree | da5c163f6e6240d9400aa36fcdf38226e5e5e023 /libmachdev/trivfs_server.c | |
parent | c654480ef67c15b2cd9e774afa65f53b32693b40 (diff) | |
download | hurd-9049b963b6023ef6d7bd3f8c81ef5ab1f3b43fd3.tar.gz hurd-9049b963b6023ef6d7bd3f8c81ef5ab1f3b43fd3.tar.bz2 hurd-9049b963b6023ef6d7bd3f8c81ef5ab1f3b43fd3.zip |
libmachdev: Fix startup_dosync
We do not actually want to shut everything down. For instance, we still have
to be able to start the acpi translator to perform the actual shutdown.
What we however have to do is syncing the disks.
Diffstat (limited to 'libmachdev/trivfs_server.c')
-rw-r--r-- | libmachdev/trivfs_server.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libmachdev/trivfs_server.c b/libmachdev/trivfs_server.c index 5d7a1300..029a8da7 100644 --- a/libmachdev/trivfs_server.c +++ b/libmachdev/trivfs_server.c @@ -490,7 +490,7 @@ machdev_trivfs_init(int argc, char **argv, mach_port_t bootstrap_resume_task, return 0; } -/* The system is going down. Sync data, then call trivfs_goaway() */ +/* The system is going down, sync data. */ error_t S_startup_dosync (mach_port_t handle) { @@ -502,10 +502,10 @@ S_startup_dosync (mach_port_t handle) ports_port_deref (inpi); - /* Sync and close device(s) */ - machdev_device_shutdown (handle); + /* Sync device(s) */ + machdev_device_sync (); - return trivfs_goaway (NULL, FSYS_GOAWAY_FORCE); + return 0; } error_t |