Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2007-05-15 05:27:30 +0400
committerChristopher Faylor <me@cgf.cx>2007-05-15 05:27:30 +0400
commit90c2ba7806132d27929ad5427d487c5b5cd84956 (patch)
treea0c0d449ae7e22028b8a2bd7da9319bef87f2f71 /winsup/cygwin/path.h
parent22ed94e503650931d40970ab5dfb226f713e6876 (diff)
* path.cc (fs_info::update): Set and use is_cdrom.
* path.cc (fillout_mntent): Set ret.mnt_type to something more Linux-like, based on data from fs_info. Move "system" and "user" strings from mnt_type to mnt_opts. * path.h (struct fs_info): Add is_cdrom field. * path.h (fs_info::clear): Initialize is_cdrom. * path.h (struct fs_info): Add IMPLEMENT_STATUS_FLAG(bool,is_cdrom). * path.h (class path_conv): Add fs_is_cdrom method. Add missing fs_is_netapp method.
Diffstat (limited to 'winsup/cygwin/path.h')
-rw-r--r--winsup/cygwin/path.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h
index 336353a4b..272d397b2 100644
--- a/winsup/cygwin/path.h
+++ b/winsup/cygwin/path.h
@@ -102,15 +102,16 @@ struct fs_info
DWORD serial; /* Volume serial number */
unsigned is_remote_drive : 1;
unsigned has_buggy_open : 1;
- unsigned has_ea : 1;
- unsigned has_acls : 1;
+ unsigned has_ea : 1;
+ unsigned has_acls : 1;
unsigned hasgood_inode : 1;
unsigned drive_type : 3;
- unsigned is_fat : 1;
- unsigned is_ntfs : 1;
- unsigned is_samba : 1;
- unsigned is_nfs : 1;
+ unsigned is_fat : 1;
+ unsigned is_ntfs : 1;
+ unsigned is_samba : 1;
+ unsigned is_nfs : 1;
unsigned is_netapp : 1;
+ unsigned is_cdrom : 1;
} status;
public:
void clear ()
@@ -129,6 +130,7 @@ struct fs_info
is_samba (false);
is_nfs (false);
is_netapp (false);
+ is_cdrom (false);
}
inline DWORD& flags () {return status.flags;};
inline DWORD& serial () {return status.serial;};
@@ -145,6 +147,7 @@ struct fs_info
IMPLEMENT_STATUS_FLAG (bool, is_samba)
IMPLEMENT_STATUS_FLAG (bool, is_nfs)
IMPLEMENT_STATUS_FLAG (bool, is_netapp)
+ IMPLEMENT_STATUS_FLAG (bool, is_cdrom)
bool update (const char *);
};
@@ -274,6 +277,8 @@ class path_conv
bool fs_is_ntfs () const {return fs.is_ntfs ();}
bool fs_is_samba () const {return fs.is_samba ();}
bool fs_is_nfs () const {return fs.is_nfs ();}
+ bool fs_is_netapp () const {return fs.is_netapp ();}
+ bool fs_is_cdrom () const {return fs.is_cdrom ();}
void set_path (const char *p) {strcpy (path, p);}
DWORD volser () { return fs.serial (); }
void fillin (HANDLE h);