*sigh* svn really messed it up. I supposed one should make sure to run

update on the directory to be copied before doing it, even if it is up
to date.

Anyway: Ported RamFS to Haiku's FS interface. Change set apparently merged
with older changes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20346 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2007-03-07 06:40:25 +00:00
parent 224e7c4269
commit c7a7242307
20 changed files with 1284 additions and 1132 deletions
@@ -37,7 +37,7 @@ Node::Node(Volume *volume, uint8 type)
fMTime(0),
fCTime(0),
fCrTime(0),
fModified(false),
fModified(0),
fIsKnownToVFS(false),
// attribute management
fAttributes(),
@@ -85,7 +85,7 @@ status_t
Node::AddReference()
{
if (++fRefCount == 1) {
status_t error = GetVolume()->NewVNode(this);
status_t error = GetVolume()->PublishVNode(this);
if (error != B_OK) {
fRefCount--;
return error;
@@ -217,7 +217,7 @@ Node::AddAttribute(Attribute *attribute)
if (error == B_OK) {
fAttributes.Insert(attribute);
attribute->SetNode(this);
MarkModified();
MarkModified(B_STAT_MODIFICATION_TIME);
}
}
return error;
@@ -258,7 +258,7 @@ Node::RemoveAttribute(Attribute *attribute)
if (error == B_OK) {
fAttributes.Remove(attribute);
attribute->SetNode(NULL);
MarkModified();
MarkModified(B_STAT_MODIFICATION_TIME);
}
}
}