Fixed stupid oversight while checking file set descriptor in Mount()

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5656 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Tyler Dauwalder 2003-12-12 06:37:29 +00:00
parent d1a0387efb
commit 17b66e62ef

View File

@ -228,10 +228,12 @@ Volume::Mount(const char *deviceName, off_t offset, off_t length,
if (!error) {
file_set_descriptor *fileSet =
reinterpret_cast<file_set_descriptor*>(chunk.Data());
PDUMP(fileSet);
error = fileSet->tag().id() == TAGID_FILE_SET_DESCRIPTOR
? B_OK : B_ERROR;
if (!error)
error = fileSet->tag().init_check(0);
error = fileSet->tag().init_check(
logicalVolumeDescriptor.file_set_address().block());
if (!error) {
PDUMP(fileSet);
fRootIcb = new Icb(this, fileSet->root_directory_icb());