rem: status_t error = ddm_strlcpy(type, _type, B_OS_NAME_LENGTH);
add: status_t error = ddm_strlcpy(type, _type, B_FILE_NAME_LENGTH);
context: _kern_create_child_partition(partition_id partitionID, int32 changeCounter,							 off_t offset, off_t size, const char *_type,							 const char *_parameters, size_t parametersSize,							 partition_id *_childID){	if (!_type || parametersSize > B_DISK_DEVICE_MAX_PARAMETER_SIZE)		return B_BAD_VALUE;	char type[B_OS_NAME_LENGTH];	char *parameters = NULL;	status_t error = ddm_strlcpy(type, _type, B_OS_NAME_LENGTH);	if (error)		return error;	if (_parameters) {		parameters = static_cast<char*>(malloc(parametersSize));		if (parameters)			user_memcpy(parameters, _parameters, parametersSize);		else			return B_NO_MEMORY;	}	KDiskDeviceManager *manager = KDiskDeviceManager::Default();	// get the partition	KPartition *partition = manager->WriteLockPartition(partitionID);	error = partition ? B_OK : B_ENTRY_NOT_FOUND;	if (!error) {		PartitionRegistrar registrar1(partition, true);		PartitionRegistrar registrar2(partition->Device(), true);		DeviceWriteLocker locker(partition->Device(), true);		// check the parameters		off_t proposedOffset = offset;		off_t proposedSize = size;		int32 index = 0;		error = validate_create_child_partition(partition, changeCounter,			&proposedOffset, &proposedSize, type, parameters, &index);		if (!error) {			error =	(proposedOffset == offset && proposedSize == size)				    ? B_OK : B_BAD_VALUE;			if (!error) {				// create the child				KPartition *child = NULL;				error = partition->CreateChild(-1, index, &child);				if (!error) {					partition->Changed(B_PARTITION_CHANGED_CHILDREN);					if (_childID) {						partition_id childID = child->ID();						user_memcpy(_childID, &childID, sizeof(childID));					}									// set the parameters					child->SetOffset(offset);					child->SetSize(offset);					error = child->SetType(type);				}				if (!error) {					error = partition->SetParameters(parameters);				}				if (!error) {					// implicit partitioning system changes					error = partition->DiskSystem()->ShadowPartitionChanged(							partition, B_PARTITION_CREATE_CHILD);				}			}		}	}	free(parameters);	return error;}