ocfs.c revision 2603474ff9be2418900581da1af5cccc9f13cae1
/*
* volume_id - reads filesystem label and uuid
*
* Copyright (C) 2004 Andre Masella <andre@masella.no-ip.org>
* 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 _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <ctype.h>
#include "libvolume_id.h"
#include "libvolume_id-private.h"
#include "util.h"
struct ocfs1_super_block_header {
} PACKED;
struct ocfs1_super_block_label {
struct ocfs1_disk_lock {
} PACKED;
struct ocfs2_super_block {
} PACKED;
{
struct ocfs1_super_block_header *osh;
struct ocfs1_super_block_label *osl;
return -1;
return -1;
dbg("found OracleCFS signature, now reading label\n");
return -1;
}
return 0;
}
#define OCFS2_MAX_BLOCKSIZE 0x1000
#define OCFS2_SUPER_BLOCK_BLKNO 2
{
struct ocfs2_super_block *os;
return -1;
continue;
return 0;
}
return -1;
}