Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpintarelli committed Apr 28, 2024
1 parent bdd6d0d commit 978b590
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/mount.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "mount.hpp"
#include "parse_args.hpp"
#include "util/expected.hpp"
#include "util/helper.hpp"
#include <cstdlib>
#include <err.h>
#include <fcntl.h>
Expand Down
3 changes: 0 additions & 3 deletions src/mount.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ extern "C" {

namespace impl {

/// check if image is a valid path to a file
bool is_file(const std::string& fname);

/// check if mountpoint is an existent directory
bool is_valid_mountpoint(const std::string &mount_point);

Expand Down
3 changes: 2 additions & 1 deletion src/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "config.hpp"
#include "mount.hpp"
#include "parse_args.hpp"
#include "util/helper.hpp"

extern "C" {
#include <slurm/slurm_errno.h>
Expand Down Expand Up @@ -106,7 +107,7 @@ std::optional<std::string> get_uenv_env(spank_t sp) {
return getenv(sp, UENV_MOUNT_LIST);
}

/// return uenv_repo_path, either from UENV_REPO_PATH or $SCRATCH/.uenv-images
/// return uenv_repo_path, default is $SCRATCH/.uenv-images or $UENV_REPO_PATH
/// it doesn't check if paths exist
std::optional<std::string> get_uenv_repo_path(spank_t sp) {
auto path = getenv(sp, UENV_REPO_PATH_VARNAME);
Expand Down

0 comments on commit 978b590

Please sign in to comment.