libvolume_id.h revision b5e694267142042228a6cac99ecad6c4b4ef8759
/*
* volume_id - reads volume label and uuid
*
* Copyright (C) 2005 Kay Sievers <kay.sievers@vrfy.org>
*
* under the terms of the GNU General Public License as published by the
* Free Software Foundation version 2 of the License.
*/
#ifndef _LIBVOLUME_ID_H_
#define _LIBVOLUME_ID_H_
#include <stdint.h>
#include <stddef.h>
#ifndef PACKED
#endif
extern volume_id_log_fn volume_id_log;
#define VOLUME_ID_LABEL_SIZE 64
#define VOLUME_ID_UUID_SIZE 36
#define VOLUME_ID_FORMAT_SIZE 32
#define VOLUME_ID_PATH_MAX 256
#define VOLUME_ID_PARTITIONS_MAX 256
enum volume_id_usage {
};
struct volume_id {
enum volume_id_usage usage_id;
char *usage;
char *type;
int fd;
int fd_close:1;
};
/* filesystems */
/* special formats */
/* raid */
/* bios raid */
extern int volume_id_probe_promise_fasttrack_raid(struct volume_id *id, uint64_t off, uint64_t size);
#endif