aboutsummaryrefslogtreecommitdiff
path: root/sutils
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-04-24 23:53:52 -0400
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-04-25 22:12:00 +0200
commit0afac7ab288a2a259bbc6bdb7e20b686b3913274 (patch)
treebe7b66587fa09204a9e16462242c0b47335170e0 /sutils
parenta3cf2656cabaf5691a4e45302eea879791917e2b (diff)
downloadhurd-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.c9
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);