[freenos] r351 committed - Fixed Ext2Directory indirect block calculation....

  • From: codesite-noreply@xxxxxxxxxx
  • To: freenos@xxxxxxxxxxxxx
  • Date: Sat, 05 Sep 2009 08:50:10 +0000

Revision: 351
Author: nieklinnenbank
Date: Sat Sep  5 01:49:07 2009
Log: Fixed Ext2Directory indirect block calculation.
Previously, an incorrect offset value would be calculated,
resulting in a wrongly referenced block.

http://code.google.com/p/freenos/source/detail?r=351

Modified:
 /trunk/srv/filesystem/ext2/Ext2Directory.cpp

=======================================
--- /trunk/srv/filesystem/ext2/Ext2Directory.cpp        Fri Aug  7 05:42:20 2009
+++ /trunk/srv/filesystem/ext2/Ext2Directory.cpp        Sat Sep  5 01:49:07 2009
@@ -77,7 +77,7 @@
                dent.type = EXT2_FILETYPE(ext2Inode);

                /* Copy to the output buffer. */
-               if ((e = buffer->write(&dent, sizeof(Dirent))) < 0)
+               if ((e = buffer->write(&dent, sizeof(Dirent), bytes)) < 0)
                {
                    return e;
                }

Other related posts:

  • » [freenos] r351 committed - Fixed Ext2Directory indirect block calculation.... - codesite-noreply