Lines Matching defs:error

124 		status_t error = user_memcpy(fRequest, userRequest, fRequestSize);
125 if (error != B_OK)
126 RETURN_ERROR(error);
234 status_t error = fPackagesDirectoriesByNodeRef.Init();
235 if (error != B_OK)
236 RETURN_ERROR(error);
238 error = fNodes.Init();
239 if (error != B_OK)
240 RETURN_ERROR(error);
242 error = fNodeListeners.Init();
243 if (error != B_OK)
244 RETURN_ERROR(error);
246 error = fPackages.Init();
247 if (error != B_OK)
248 RETURN_ERROR(error);
250 error = fIndices.Init();
251 if (error != B_OK)
252 RETURN_ERROR(error);
260 error = index->Init(this);
261 if (error != B_OK) {
263 RETURN_ERROR(error);
275 error = index->Init(this);
276 if (error != B_OK) {
278 RETURN_ERROR(error);
290 error = index->Init(this);
291 if (error != B_OK) {
293 RETURN_ERROR(error);
305 error = index->Init(this, "BEOS:APP_SIG", B_MIME_STRING_TYPE, 0);
306 if (error != B_OK) {
308 RETURN_ERROR(error);
341 error = _InitMountType(mountType);
342 if (error != B_OK) {
344 RETURN_ERROR(error);
348 error = vfs_get_mount_point(fFSVolume->id, &fMountPoint.deviceID,
350 if (error != B_OK)
351 RETURN_ERROR(error);
354 error = fPackageSettings.Load(fMountPoint.deviceID, fMountPoint.nodeID,
357 if (error == B_NO_MEMORY)
358 RETURN_ERROR(error);
368 error = fPackagesDirectory->Init(packages, fMountPoint.deviceID,
370 if (error != B_OK)
371 RETURN_ERROR(error);
375 error = _LoadOldPackagesStates(packagesState);
376 if (error != B_OK)
377 RETURN_ERROR(error);
411 error = ::PackageFSRoot::RegisterVolume(this);
412 if (error != B_OK)
413 RETURN_ERROR(error);
416 error = _AddPackageLinksDirectory();
417 if (error != B_OK)
418 RETURN_ERROR(error);
422 error = _CreateShineThroughDirectories(shineThrough);
423 if (error != B_OK)
424 RETURN_ERROR(error);
427 error = _AddInitialPackages();
428 if (error != B_OK)
429 RETURN_ERROR(error);
433 error = PublishVNode(fRootDirectory);
434 if (error != B_OK) {
436 RETURN_ERROR(error);
440 error = _PublishShineThroughDirectories();
441 if (error != B_OK)
442 RETURN_ERROR(error);
476 status_t error = user_memcpy(userVolumeInfo, &volumeInfo,
478 if (error != B_OK)
479 RETURN_ERROR(error);
555 status_t error = request.Init(buffer, size);
556 if (error != B_OK)
724 status_t error = packagesDirectory->InitOldState(adminDirStat.st_dev,
726 if (error != B_OK) {
752 status_t error = _AddInitialPackagesFromActivationFile(packagesDirectory);
753 if (error != B_OK && packagesDirectory != fPackagesDirectory) {
770 error = _AddInitialPackagesFromActivationFile(packagesDirectory);
773 if (error != B_OK) {
785 error = _AddInitialPackagesFromDirectory();
786 if (error != B_OK)
787 RETURN_ERROR(error);
795 error = _AddPackageContent(package, false);
796 if (error != B_OK) {
802 RETURN_ERROR(error);
877 status_t error = _LoadAndAddInitialPackage(packagesDirectory,
879 if (error != B_OK)
880 RETURN_ERROR(error);
930 status_t error = _LoadPackage(packagesDirectory, name, package);
931 if (error != B_OK) {
932 ERROR("Failed to load package \"%s\": %s\n", name, strerror(error));
933 RETURN_ERROR(error);
993 status_t error = fPackageFSRoot->AddPackage(package);
994 if (error != B_OK)
995 RETURN_ERROR(error);
1004 error = _AddPackageContentRootNode(package, node, notify);
1005 if (error != B_OK) {
1007 RETURN_ERROR(error);
1057 status_t error = _AddPackageNode(directory, packageNode, notify, node);
1059 if (error != B_OK) {
1069 RETURN_ERROR(error);
1194 status_t error = _CreateUnpackingNode(packageNode->Mode(), directory,
1196 if (error != B_OK)
1197 RETURN_ERROR(error);
1219 status_t error = unpackingNode->CloneTransferPackageNodes(
1221 if (error != B_OK)
1222 RETURN_ERROR(error);
1240 status_t error = unpackingNode->AddPackageNode(packageNode, ID());
1241 if (error != B_OK) {
1256 RETURN_ERROR(error);
1329 status_t error = unpackingNode->CloneTransferPackageNodes(
1331 if (error == B_OK) {
1405 status_t error = node->Init(parent, name);
1406 if (error != B_OK)
1407 RETURN_ERROR(error);
1500 status_t error = package->Init(name);
1501 if (error != B_OK)
1502 return error;
1504 error = package->Load(fPackageSettings);
1505 if (error != B_OK)
1506 return error;
1594 status_t error = _LoadPackage(fPackagesDirectory, item->name, package);
1595 if (error != B_OK) {
1598 RETURN_ERROR(error);
1633 status_t error = B_OK;
1640 error = _AddPackageContent(package, true);
1641 if (error != B_OK) {
1648 // Try to roll back the changes, if an error occurred.
1649 if (error != B_OK) {
1663 "deactivation of package \"%s\" after error\n",
1670 return error;
1706 status_t error = directory->Init(parent, nameString);
1707 if (error != B_OK)
1708 RETURN_ERROR(error);
1755 status_t error = _CreateShineThroughDirectory(fRootDirectory,
1757 if (error != B_OK)
1758 RETURN_ERROR(error);
1785 status_t error = vfs_entry_ref_to_vnode(fMountPoint.deviceID,
1787 if (error != B_OK) {
1789 "%s\n", directoryName, strerror(error));
1797 error = vfs_stat_vnode(vnode, &st);
1798 if (error != B_OK) {
1800 "%s\n", directoryName, strerror(error));
1814 error = PublishVNode(directory);
1815 if (error != B_OK) {
1818 RETURN_ERROR(error);
1822 error = vfs_bind_mount_directory(st.st_dev, st.st_ino, fFSVolume->id,
1829 if (error != B_OK)
1830 RETURN_ERROR(error);