remount(2) - SerenityOS man pages


remount - remount a filesystem with new mount flags


#include <LibCore/System.h>

ErrorOr<void> remount(StringView target, int flags);


remount() mounts a filesystem that is mounted at target with new mount flags of flags.

The following flags are supported:

These flags can be used as a security measure to limit the possible abuses of the mounted file system.


All of the usual path resolution errors may also occur.

#See also