fix
Some checks failed
BlockStorage/repertory_mac/pipeline/head There was a failure building this commit

This commit is contained in:
2025-08-06 07:27:58 -05:00
parent 1a86fc5c29
commit 02045dfd07

View File

@@ -456,21 +456,21 @@ auto fuse_base::mount([[maybe_unused]] std::vector<std::string> orig_args,
return -1;
}
ret = utils::launchctl_command(utils::launchctl_type::bootout, label_);
ret = utils::launchctl_command(label_, utils::launchctl_type::bootout);
if (ret != 0) {
std::cout << fmt::format("WARN: Failed to bootout {}/{}", getuid(),
label_)
<< std::endl;
}
ret = utils::launchctl_command(utils::launchctl_type::bootstrap, label_);
ret = utils::launchctl_command(label_, utils::launchctl_type::bootstrap);
if (ret != 0) {
std::cout << fmt::format("WARN: Failed to bootstrap {}/{}", getuid(),
label_)
<< std::endl;
}
ret = = utils::launchctl_command(utils::launchctl_type::kickstart, label_);
ret = = utils::launchctl_command(label_, utils::launchctl_type::kickstart);
if (ret != 0) {
std::cerr << fmt::format("FATAL: Failed to kickstart {}/{}", getuid(),
label_)
@@ -922,7 +922,7 @@ auto fuse_base::unmount(const std::string &mount_location) -> int {
if (utils::file::file{
utils::path::combine("~", {"/Library/LaunchAgents", label_})}
.exists()) {
return utils::launchctl_command(utils::launchctl_type::bootout, label_);
return utils::launchctl_command(label_, utils::launchctl_type::bootout);
}
auto cmd = "umount \"" + mount_location + "\" >/dev/null 2>&1";