Lines Matching defs:ret

99 		status_t ret = partition->GetPartitioningInfo(&info);
100 if (ret >= B_OK) {
165 status_t ret = fDisk->CommitModifications();
166 if (ret == B_OK)
169 return ret;
287 status_t ret = fDDRoster.StartWatching(BMessenger(this));
288 if (ret != B_OK) {
290 strerror(ret));
544 status_t ret = newDisk->SetTo(disk);
545 if (ret < B_OK) {
546 printf("error switching disks: %s\n", strerror(ret));
730 status_t ret = partition->Mount();
731 if (ret < B_OK) {
733 B_TRANSLATE("Could not mount partition %s."), partition, ret);
764 status_t ret = partition->Unmount();
765 if (ret < B_OK) {
768 partition, ret);
877 status_t ret = modificationPreparer.ModificationStatus();
878 if (ret != B_OK) {
880 "disk for modifications."), NULL, ret);
893 ret = partition->ValidateInitialize(diskSystem.PrettyName(),
895 if (ret != B_OK) {
897 "initialization parameters failed."), partition, ret);
903 ret = partition->Initialize(diskSystem.PrettyName(),
905 if (ret != B_OK) {
907 "%s failed. (Nothing has been written to disk.)"), partition, ret);
950 ret = modificationPreparer.CommitModifications();
956 if (ret == B_OK) {
967 "partition %s!\n"), partition, ret);
970 "disk %s!\n"), partition, ret);
1014 status_t ret = modificationPreparer.ModificationStatus();
1015 if (ret != B_OK) {
1017 "disk for modifications."), NULL, ret);
1046 ret = parent->ValidateCreateChild(&offset, &size, type.String(),
1049 if (ret != B_OK) {
1067 ret = parent->CreateChild(offset, size, type.String(),
1070 if (ret != B_OK) {
1072 "failed."), NULL, ret);
1077 ret = modificationPreparer.CommitModifications();
1079 if (ret != B_OK) {
1081 "partition. No changes have been written to disk."), NULL, ret);
1087 ret = disk->Update(&updated);
1123 status_t ret = modificationPreparer.ModificationStatus();
1124 if (ret != B_OK) {
1126 "disk for modifications."), NULL, ret);
1148 ret = parent->DeleteChild(partition->Index());
1149 if (ret != B_OK) {
1151 B_TRANSLATE("Could not delete the selected partition."), NULL, ret);
1155 ret = modificationPreparer.CommitModifications();
1157 if (ret != B_OK) {
1159 "No changes have been written to disk."), NULL, ret);