dualinit

A meta-init system for linux
Log | Files | Refs | LICENSE

mount.h (346B)


      1 #pragma once
      2 
      3 #include <stdbool.h>
      4 
      5 typedef struct mount_option {
      6 	const char* name;
      7 	int			flags;
      8 	bool		invert;
      9 } mount_option_t;
     10 
     11 /**
     12  * mount options (taken from util-linux)
     13  */
     14 extern const mount_option_t mount_options[];
     15 
     16 /**
     17  * parse mount flags to C-flags and remaining options
     18  */
     19 int mount_flags(const char* options, const char** dest);