Searched refs:initInfo (Results 1 – 1 of 1) sorted by relevance
173 init_device_info(int32 index, virtual_drive_info *initInfo) in init_device_info() argument175 if (!is_valid_data_device_index(index) || !initInfo) in init_device_info()182 bool readOnly = (initInfo->use_geometry && initInfo->geometry.read_only); in init_device_info()185 int fd = open(initInfo->file_name, (readOnly ? O_RDONLY : O_RDWR)); in init_device_info()203 if (initInfo->use_geometry) { in init_device_info()205 info.geometry = initInfo->geometry; in init_device_info()271 strcpy(info.file, initInfo->file_name); in init_device_info()