341 |
/* Open the device NAME, and return the corresponding store in STORE. */ |
/* Open the device NAME, and return the corresponding store in STORE. */ |
342 |
error_t store_device_open (const char *name, int flags, struct store **store); |
error_t store_device_open (const char *name, int flags, struct store **store); |
343 |
|
|
344 |
|
/* Return a new store in STORE which contains a remap store of partition |
345 |
|
PART from the contents of SOURCE; SOURCE is consumed. */ |
346 |
|
error_t store_part_create (struct store *source, int index, int flags, |
347 |
|
struct store **store); |
348 |
|
|
349 |
|
/* Open the part NAME. NAME consists of a partition number, a ':', a another |
350 |
|
store class name, a ':' and a name for to by passed to the store class. |
351 |
|
E.g. "2:device:hd0" would open the second partition on a DEVICE store |
352 |
|
named "hd0". FLAGS indicate how to open the store. CLASSES is used to |
353 |
|
select classes specified by the type NAME; if it is 0, STORE_STD_CLASSES |
354 |
|
is used. The new store is returned in *STORE. */ |
355 |
|
error_t store_part_open (const char *name, int flags, |
356 |
|
const struct store_class *const *classes, |
357 |
|
struct store **store); |
358 |
|
|
359 |
/* Return a new store in STORE referring to the file FILE. Unlike |
/* Return a new store in STORE referring to the file FILE. Unlike |
360 |
store_create, this will always use file i/o, even it would be possible to |
store_create, this will always use file i/o, even it would be possible to |
361 |
be more direct. This may work in more cases, for instance if the file has |
be more direct. This may work in more cases, for instance if the file has |
493 |
extern const struct store_class *const store_std_classes[]; |
extern const struct store_class *const store_std_classes[]; |
494 |
|
|
495 |
extern const struct store_class store_device_class; |
extern const struct store_class store_device_class; |
496 |
|
extern const struct store_class store_part_class; |
497 |
extern const struct store_class store_file_class; |
extern const struct store_class store_file_class; |
498 |
extern const struct store_class store_task_class; |
extern const struct store_class store_task_class; |
499 |
extern const struct store_class store_zero_class; |
extern const struct store_class store_zero_class; |