Changes by: antona
Update of /cvsroot/linux-ntfs/linux-ntfs/include
In directory usw-pr-cvs1:/tmp/cvs-serv12548/include
Modified Files:
ntfsd.h
Log Message:
Initial ntfsd implementation using alarm signal to emulate a usermode thread.
(This might not work when the library is installed as shared... Not sure, will
found out soon enough...)
Stil missing the acutal walking of volumes and their dirty mft entries, as
well as flushing them...
Index: ntfsd.h
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/include/ntfsd.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -U2 -r1.1 -r1.2
--- ntfsd.h 2001/04/06 23:18:03 1.1
+++ ntfsd.h 2001/04/07 00:45:49 1.2
@@ -4,5 +4,5 @@
* ntfsd.h - Exports for writer daemon. Part of the Linux-NTFS project.
*
- * Copyright (c) 2000,2001 Anton Altaparmakov.
+ * Copyright (c) 2001 Anton Altaparmakov.
*
* This program/include file is free software; you can redistribute it and/or
@@ -35,15 +35,20 @@
/* Ntfsd flags bit values */
-#define NTFSD_started 0
+#define NTFSD_running 0
#define NTFSD_busy 1
- /* bits 2-31 reserved for future use */
+#define NTFSD_started 2
+ /* bits 3-31 reserved for future use */
-#define NtfsdStarted(a) test_bit(NTFSD_started, a)
-#define SetNtfsdStarted(a) set_bit(NTFSD_started, a)
-#define ClearNtfsdStarted(a) clear_bit(NTFSD_started, a)
-
-#define NtfsdBusy(a) test_bit(NTFSD_busy, a)
-#define SetNtfsdBusy(a) set_bit(NTFSD_busy, a)
-#define ClearNtfsdBusy(a) clear_bit(NTFSD_busy, a)
+#define NtfsdRunning(a) test_bit(NTFSD_running, &(a))
+#define SetNtfsdRunning(a) set_bit(NTFSD_running, &(a))
+#define ClearNtfsdRunning(a) clear_bit(NTFSD_running, &(a))
+
+#define NtfsdBusy(a) test_bit(NTFSD_busy, &(a))
+#define SetNtfsdBusy(a) set_bit(NTFSD_busy, &(a))
+#define ClearNtfsdBusy(a) clear_bit(NTFSD_busy, &(a))
+
+#define NtfsdStarted(a) test_bit(NTFSD_started, &(a))
+#define SetNtfsdStarted(a) set_bit(NTFSD_started, &(a))
+#define ClearNtfsdStarted(a) clear_bit(NTFSD_started, &(a))
#endif /* defined NTFSD_H */
|