Changes by: antona
Update of /cvsroot/linux-ntfs/linux-ntfs/libntfs
In directory usw-pr-cvs1:/tmp/cvs-serv10645
Modified Files:
mft.c
Log Message:
Mark mft entry dirty function complete
Index: mft.c
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/libntfs/mft.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -U2 -r1.2 -r1.3
--- mft.c 2001/03/05 03:04:40 1.2
+++ mft.c 2001/04/03 23:38:34 1.3
@@ -1,3 +1,5 @@
/*
+ * $Id$
+ *
* mft.c - Mft record handling code. Part of the Linux-NTFS project.
*
@@ -21,4 +23,6 @@
#include <linux/types.h>
+#include <linux/list.h>
+#include <linux/errno.h>
#include "mft.h"
@@ -32,4 +36,28 @@
/* Get the number of used bytes and return it. */
return le32_to_cpu(b->bytes_in_use);
+}
+
+void __set_mft_entry_dirty(mft_entry *mentry)
+{
+ ntfs_volume *v = mentry->m_vol;
+
+ down_write(&v->mft_entries_sem);
+ list_add(&mentry->m_dirty_list, &v->dirty_mft_entries);
+ v->nr_dirty_mft_entries++;
+ up_write(&v->mft_entries_sem);
+
+ return;
+}
+
+ntfs_file *ntfs_open_by_mref(const ntfs_volume *vol, const MFT_REFERENCE *mref)
+{
+ errno = -ENOTSUP;
+ return NULL;
+}
+
+int ntfs_close(ntfs_file *fref)
+{
+ errno = -ENOTSUP;
+ return -1;
}
|