Panic when trying to access the small data region. It is not loaded from
disk. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27755 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -137,6 +137,10 @@ Stream::InitCheck()
|
|||||||
status_t
|
status_t
|
||||||
Stream::GetNextSmallData(const small_data **_smallData) const
|
Stream::GetNextSmallData(const small_data **_smallData) const
|
||||||
{
|
{
|
||||||
|
// TODO: Stream derives from bfs_inode and we read only sizeof(bfs_inode)
|
||||||
|
// bytes from disk, i.e. the small data region is not in memory.
|
||||||
|
panic("Stream::GetNextSmallData(): small data region is not loaded!");
|
||||||
|
|
||||||
const small_data *smallData = *_smallData;
|
const small_data *smallData = *_smallData;
|
||||||
|
|
||||||
// begin from the start?
|
// begin from the start?
|
||||||
@@ -155,7 +159,7 @@ Stream::GetNextSmallData(const small_data **_smallData) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
Stream::GetName(char *name, size_t size) const
|
Stream::GetName(char *name, size_t size) const
|
||||||
{
|
{
|
||||||
const small_data *smallData = NULL;
|
const small_data *smallData = NULL;
|
||||||
@@ -170,7 +174,7 @@ Stream::GetName(char *name, size_t size) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
Stream::ReadLink(char *buffer, size_t bufferSize)
|
Stream::ReadLink(char *buffer, size_t bufferSize)
|
||||||
{
|
{
|
||||||
// link in the stream
|
// link in the stream
|
||||||
@@ -415,7 +419,7 @@ Stream::NodeFactory(Volume &volume, off_t id)
|
|||||||
// #pragma mark -
|
// #pragma mark -
|
||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
bfs_inode::InitCheck(Volume *volume)
|
bfs_inode::InitCheck(Volume *volume)
|
||||||
{
|
{
|
||||||
if (Flags() & INODE_NOT_READY) {
|
if (Flags() & INODE_NOT_READY) {
|
||||||
|
|||||||
Reference in New Issue
Block a user