History log of /haiku/src/tests/system/kernel/file_corruption/fs/Node.cpp
Revision Date Author Comments
# 0f9dda9f 20-Jul-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Moved Block implementation to its own source file.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37633 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8794d8c4 20-Jul-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

* Volume::Create{File,Directory,SymLink}():
- Simplified by using the new common _CreateNode(). Changed the constructors
slightly -- the block index is now set via a separate SetBlockIndex()
method.
- The block allocated for the node was not cleared. At least for directories
that is required, though.
* Added attribute support:
- Refactored/extended {open,create}_file() and DirCookie a bit, so they can
also be used for attributes/attribute directories.
- Implemented all relevant attribute FS hooks.
- Node::DeletingNode(): Changed interface (it creates the transaction(s) as
needed, now and doesn't return the error code anymore. The base class
implementation frees the attribute directory, the Directory implementation
also unlinks all entries and frees the entry tree.
* checksumfs_write_stat(): B_STAT_MODE was not handled.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37626 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e8282312 19-Jul-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Added node monitoring support.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37601 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4b53c2ba 19-Jul-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Implemented hooks write_fs_info(), sync(), set_flags(), fsync(), access().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37595 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4a6cd3b3 13-Jul-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

* Added some stat data setters.
* Added virtual methods needed for files.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37506 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a2e7c741 12-Jul-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

* Added Transaction class which wraps a block cache transaction and performs
all other operations required to roll back a transaction. Transactions are
fully serialized -- due to limitations of our block cache and also to keep
things simple.
* Use a transaction for all write operations.
* Implemented the directory entry management code (a simple tree algorithm).
* Finished/implemented the FS hooks for directory entry lookup, directory
iteration, creation, and removal.
* Added non-persistent support for node access times.
* Set the user and group IDs on node creation.
* Added permission checks to several FS hooks.
* BlockAllocator::_Free(): The number of freed blocks was subtracted from
fFreeBlocks instead of added.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37478 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 74956f43 05-Jul-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

* Added the beginnings of node support.
* Added the bare minimum of file system hooks to mount the file system. Can't
do anything more than listing the (empty) root directory yet, though.
* Added Jamfile for building the file system for the userlandfs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37406 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0f9dda9f00200c24373c4e90911605e013d42afb 20-Jul-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Moved Block implementation to its own source file.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37633 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8794d8c48f3c595cf42a9ae36fe661e38c019f34 20-Jul-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

* Volume::Create{File,Directory,SymLink}():
- Simplified by using the new common _CreateNode(). Changed the constructors
slightly -- the block index is now set via a separate SetBlockIndex()
method.
- The block allocated for the node was not cleared. At least for directories
that is required, though.
* Added attribute support:
- Refactored/extended {open,create}_file() and DirCookie a bit, so they can
also be used for attributes/attribute directories.
- Implemented all relevant attribute FS hooks.
- Node::DeletingNode(): Changed interface (it creates the transaction(s) as
needed, now and doesn't return the error code anymore. The base class
implementation frees the attribute directory, the Directory implementation
also unlinks all entries and frees the entry tree.
* checksumfs_write_stat(): B_STAT_MODE was not handled.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37626 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e828231248036363167313f7cad872c2bb5676e4 19-Jul-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Added node monitoring support.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37601 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4b53c2ba4f0b774030e369fc2ec522309b12d1f7 19-Jul-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Implemented hooks write_fs_info(), sync(), set_flags(), fsync(), access().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37595 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4a6cd3b3f9dbafcee2c55fb76a3f17e374d7eaea 13-Jul-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

* Added some stat data setters.
* Added virtual methods needed for files.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37506 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a2e7c7417b968392fd1756b6b097eb047003e6c7 12-Jul-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

* Added Transaction class which wraps a block cache transaction and performs
all other operations required to roll back a transaction. Transactions are
fully serialized -- due to limitations of our block cache and also to keep
things simple.
* Use a transaction for all write operations.
* Implemented the directory entry management code (a simple tree algorithm).
* Finished/implemented the FS hooks for directory entry lookup, directory
iteration, creation, and removal.
* Added non-persistent support for node access times.
* Set the user and group IDs on node creation.
* Added permission checks to several FS hooks.
* BlockAllocator::_Free(): The number of freed blocks was subtracted from
fFreeBlocks instead of added.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37478 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 74956f4385f2640f6de361d13e0cbe4f966ee1c7 05-Jul-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

* Added the beginnings of node support.
* Added the bare minimum of file system hooks to mount the file system. Can't
do anything more than listing the (empty) root directory yet, though.
* Added Jamfile for building the file system for the userlandfs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37406 a95241bf-73f2-0310-859d-f6bbb57e9c96