From 8db89f63362c7390aa0aeaf02198fc23250fdaaa Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Fri, 8 Jul 2011 16:15:14 +0200 Subject: [PATCH] Create a "BEOS:APP_SIG" index by default --- .../kernel/file_systems/packagefs/Volume.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/add-ons/kernel/file_systems/packagefs/Volume.cpp b/src/add-ons/kernel/file_systems/packagefs/Volume.cpp index 3976723d48..b8d2154b61 100644 --- a/src/add-ons/kernel/file_systems/packagefs/Volume.cpp +++ b/src/add-ons/kernel/file_systems/packagefs/Volume.cpp @@ -30,6 +30,7 @@ #include #include +#include "AttributeIndex.h" #include "DebugSupport.h" #include "kernel_interface.h" #include "LastModifiedIndex.h" @@ -556,6 +557,21 @@ Volume::Mount(const char* parameterString) fIndices.Insert(index); } + // create a BEOS:APP_SIG index + { + AttributeIndex* index = new(std::nothrow) AttributeIndex; + if (index == NULL) + RETURN_ERROR(B_NO_MEMORY); + + error = index->Init(this, "BEOS:APP_SIG", B_MIME_STRING_TYPE, 0); + if (error != B_OK) { + delete index; + RETURN_ERROR(error); + } + + fIndices.Insert(index); + } + // get the mount parameters const char* packages = NULL; const char* volumeName = NULL;