Changes by: antona
Update of /cvsroot/linux-ntfs/linux-ntfs/include
In directory usw-pr-cvs1:/tmp/cvs-serv25870/include
Modified Files:
volume.h
Log Message:
Fixup the force option in mkntfs.c. Change the ntfs_check_if_mounted so it works on system not implementing {set,get,end}mntent, too. Also make it more powerful in telling us not only if something is mounted but also if it is the fs root and if it is read-only.
Index: volume.h
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/include/volume.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -U2 -r1.18 -r1.19
--- volume.h 22 Apr 2002 10:34:31 -0000 1.18
+++ volume.h 23 Apr 2002 23:27:33 -0000 1.19
@@ -25,7 +25,23 @@
#define VOLUME_H
+#include "config.h"
+
#include <sys/mount.h>
+#ifdef HAVE_MNTENT_H
+# include <mntent.h>
+#endif
#include "types.h"
+
+/*
+ * Flags returned by the ntfs_check_if_mounted() function.
+ */
+typedef enum {
+ NTFS_MF_MOUNTED = 1, /* Device is mounted. */
+ NTFS_MF_ISROOT = 2, /* Device is mounted as system root. */
+ NTFS_MF_READONLY = 4, /* Device is mounted read-only. */
+} ntfs_mount_flags;
+
+extern int ntfs_check_if_mounted(const char *file, unsigned long *mnt_flags);
/*
|