rem: manager->Unlock();
context: main(){	KDiskDeviceManager::CreateDefault();	KDiskDeviceManager *manager = KDiskDeviceManager::Default();	manager->InitialDeviceScan();	partition_id id = manager->CreateFileDevice(kTestFileDevice);	if (id < B_OK)		printf("creating the file device failed: %s\n", strerror(id));	if (manager->Lock()) {		for (int32 cookie = 0;			 KDiskDevice *device = manager->NextDevice(&cookie); ) {			device->Dump();			printf("\n");		}		manager->Unlock();	}//	error = manager->DeleteFileDevice(kTestFileDevice);//	if (error != B_OK)//		printf("deleting the file device failed: %s\n", strerror(error));	KDiskDeviceManager::DeleteDefault();	return 0;}