diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-04-02 17:45:32 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-04-02 17:45:32 +0000 |
commit | 85340bc03d4d0e137ab77f7efe09d2e1cc16b395 (patch) | |
tree | d2b465bcc8c1366c498b555c78d8df148f6b7ad1 /winsup/cygwin/shared_info.h | |
parent | c8cd2f2255167288a31293e21576b8d8ae1347ba (diff) | |
download | cygnal-85340bc03d4d0e137ab77f7efe09d2e1cc16b395.tar.gz cygnal-85340bc03d4d0e137ab77f7efe09d2e1cc16b395.tar.bz2 cygnal-85340bc03d4d0e137ab77f7efe09d2e1cc16b395.zip |
* path.cc (mount_info::init): First try to fetch mount points from
fstab files. Fallback to registry if none exists.
(skip_ws): New inline function.
(find_ws): Ditto.
(struct opt): New structure for mount options.
(read_flags): New static function to convert a mount flags string into
a flag value.
(mount_info::from_fstab_line): New method to create a mount table
entry from a fstab line.
(mount_info::from_fstab): New method to read fstab file.
* shared_info.h (mount_info::from_fstab_line): Declare.
(mount_info::from_fstab): Declare.
Diffstat (limited to 'winsup/cygwin/shared_info.h')
-rw-r--r-- | winsup/cygwin/shared_info.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/shared_info.h b/winsup/cygwin/shared_info.h index d1091f7e2..23c267430 100644 --- a/winsup/cygwin/shared_info.h +++ b/winsup/cygwin/shared_info.h @@ -74,6 +74,8 @@ class mount_info int add_item (const char *dev, const char *path, unsigned flags, int reg_p); int del_item (const char *path, unsigned flags, int reg_p); + bool from_fstab_line (char *line, bool user); + bool from_fstab (bool user); void from_registry (); int add_reg_mount (const char * native_path, const char * posix_path, unsigned mountflags); |