Kernel interface abstraction for attribute access

* Introduce interface AttributeCookie and currently only implementation
  UnpackingAttributeCookie. This is an interface for reading/stat()ing
  an attribute.
* Add abstract virtual Node::OpenAttribute() method that returns an
  AttributeCookie and implemented it for derived classes.
* In the kernel interface attribute hooks use AttributeCookie now. The
  attribute directory hooks are unchanged.
This commit is contained in:
Ingo Weinhold
2011-07-17 16:54:25 +02:00
parent 22a808885b
commit 8ae81ef94e
11 changed files with 261 additions and 96 deletions
@@ -7,6 +7,7 @@ UsePrivateHeaders shared ;
HAIKU_PACKAGE_FS_SOURCES =
AttributeCookie.cpp
BlockBufferCacheKernel.cpp
DebugSupport.cpp
Dependency.cpp
@@ -26,6 +27,7 @@ HAIKU_PACKAGE_FS_SOURCES =
PackageNodeAttribute.cpp
PackageSymlink.cpp
Resolvable.cpp
UnpackingAttributeCookie.cpp
Version.cpp
Volume.cpp
;