libvolume_id-private.h revision 2603474ff9be2418900581da1af5cccc9f13cae1
/*
* volume_id - reads volume label and uuid
*
* Copyright (C) 2005-2007 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_PRIVATE_H_
#define _LIBVOLUME_ID_PRIVATE_H_
#include <stdint.h>
#include <stddef.h>
#include "libvolume_id.h"
#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