Skip to content
Snippets Groups Projects
  • Janne Blomqvist's avatar
    485c80bc
    Use mount and umount syscalls when handling cgroup namespaces. · 485c80bc
    Janne Blomqvist authored
    Using the syscalls directly rather than calling bin/(u)mount via
    system() avoids a few fork + exec calls, and provides better error
    handling if something goes wrong.
    
    Users of this functionality are also updated to use slurm_strerror in
    order to provide a more informative error message.
    
    The mount and umount syscalls are Linux-specific, but so are cgroups
    so no portability is lost.
    485c80bc
    History
    Use mount and umount syscalls when handling cgroup namespaces.
    Janne Blomqvist authored
    Using the syscalls directly rather than calling bin/(u)mount via
    system() avoids a few fork + exec calls, and provides better error
    handling if something goes wrong.
    
    Users of this functionality are also updated to use slurm_strerror in
    order to provide a more informative error message.
    
    The mount and umount syscalls are Linux-specific, but so are cgroups
    so no portability is lost.