[haiku-commits] r39283 - haiku/trunk/src/tests/system/kernel/file_corruption/fs

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 3 Nov 2010 21:42:17 +0100 (CET)

Author: bonefish
Date: 2010-11-03 21:42:17 +0100 (Wed, 03 Nov 2010)
New Revision: 39283
Changeset: http://dev.haiku-os.org/changeset/39283

Modified:
   haiku/trunk/src/tests/system/kernel/file_corruption/fs/checksumfs.cpp
Log:
* checksumfs_write_stat(): Actually add the node to the transaction as the
  comment claims. Spotted by Axel.
* Added preallocate() slot to gCheckSumFSVnodeOps.


Modified: haiku/trunk/src/tests/system/kernel/file_corruption/fs/checksumfs.cpp
===================================================================
--- haiku/trunk/src/tests/system/kernel/file_corruption/fs/checksumfs.cpp       
2010-11-03 20:00:49 UTC (rev 39282)
+++ haiku/trunk/src/tests/system/kernel/file_corruption/fs/checksumfs.cpp       
2010-11-03 20:42:17 UTC (rev 39283)
@@ -1438,7 +1438,7 @@
 
        // start a transaction and add the node to it (write locks the node, 
too)
        Transaction transaction(volume);
-       status_t error = transaction.Start();
+       status_t error = transaction.StartAndAddNode(node);
        if (error != B_OK)
                return error;
 
@@ -2346,6 +2346,7 @@
        checksumfs_access,
        checksumfs_read_stat,
        checksumfs_write_stat,
+       NULL,   // preallocate
 
        /* file operations */
        checksumfs_create,


Other related posts:

  • » [haiku-commits] r39283 - haiku/trunk/src/tests/system/kernel/file_corruption/fs - ingo_weinhold