• Home
  • Raw
  • Download

Lines Matching refs:sparse_params

185 static errcode_t sparse_open_channel(struct sparse_io_params *sparse_params,  in sparse_open_channel()  argument
196 retval = io_manager_configure(sparse_params, flags, io); in sparse_open_channel()
207 struct sparse_io_params *sparse_params) in read_sparse_argv() argument
210 sparse_params->fd = -1; in read_sparse_argv()
211 sparse_params->block_size = 0; in read_sparse_argv()
212 sparse_params->blocks_count = 0; in read_sparse_argv()
214 sparse_params->file = malloc(strlen(name) + 1); in read_sparse_argv()
215 if (!sparse_params->file) { in read_sparse_argv()
221 ret = sscanf(name, "(%d):%llu:%u", &sparse_params->fd, in read_sparse_argv()
222 (unsigned long long *)&sparse_params->blocks_count, in read_sparse_argv()
223 &sparse_params->block_size); in read_sparse_argv()
225 ret = sscanf(name, "(%[^)])%*[:]%llu%*[:]%u", sparse_params->file, in read_sparse_argv()
226 (unsigned long long *)&sparse_params->blocks_count, in read_sparse_argv()
227 &sparse_params->block_size); in read_sparse_argv()
231 free(sparse_params->file); in read_sparse_argv()
240 struct sparse_io_params sparse_params; in sparse_open() local
242 retval = read_sparse_argv(name, false, &sparse_params); in sparse_open()
246 retval = sparse_open_channel(&sparse_params, flags, channel); in sparse_open()
257 struct sparse_io_params sparse_params; in sparsefd_open() local
259 retval = read_sparse_argv(name, true, &sparse_params); in sparsefd_open()
263 retval = sparse_open_channel(&sparse_params, flags, channel); in sparsefd_open()