diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2023-04-24 23:53:52 -0400 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-04-25 22:12:00 +0200 |
commit | 0afac7ab288a2a259bbc6bdb7e20b686b3913274 (patch) | |
tree | be7b66587fa09204a9e16462242c0b47335170e0 /sutils | |
parent | a3cf2656cabaf5691a4e45302eea879791917e2b (diff) | |
download | hurd-0afac7ab288a2a259bbc6bdb7e20b686b3913274.tar.gz hurd-0afac7ab288a2a259bbc6bdb7e20b686b3913274.tar.bz2 hurd-0afac7ab288a2a259bbc6bdb7e20b686b3913274.zip |
Use c_string for default_pager_filename_t to define a new default_pager_paging_storage RPC.
This brings us a bit closer to having all types' msgt_size representable
with a single byte. We will be able to avoid mach_msg_type_long_t
entirely for x86_64 since mach_msg_type_t can represent long types using
a separate field.
Message-Id: <ZEdO0Grm2AUw4Tfe@jupiter.tail36e24.ts.net>
Diffstat (limited to 'sutils')
-rw-r--r-- | sutils/swapon.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sutils/swapon.c b/sutils/swapon.c index 2ee3cd7f..c965d8e2 100644 --- a/sutils/swapon.c +++ b/sutils/swapon.c @@ -409,8 +409,13 @@ swaponoff (const char *file, int add, int skipnotexisting) runs[j++] = store->runs[i].start; runs[j++] = store->runs[i].length; } - err = default_pager_paging_storage (def_pager, store->port, - runs, j, file, add); + err = default_pager_paging_storage_new (def_pager, store->port, + runs, j, file, add); + if (err == MIG_BAD_ID || err == EOPNOTSUPP) + { + err = default_pager_paging_storage (def_pager, store->port, + runs, j, file, add); + } store_free (store); |