summaryrefslogtreecommitdiffstats
path: root/libblkid/drbdproxy_datalog.c
diff options
context:
space:
mode:
authorbigbiff <bigbiff@teamw.in>2015-01-02 01:44:14 +0100
committerDees Troy <dees_troy@teamw.in>2015-01-05 04:38:42 +0100
commit7b4c7a681cc4c0a53dc8a8baf4853e921cfbf5de (patch)
treefb69cb515cb4ab675d5850684cc402100b7a2a22 /libblkid/drbdproxy_datalog.c
parentcrypto: remove unused libs and clean up makefile (diff)
downloadandroid_bootable_recovery-7b4c7a681cc4c0a53dc8a8baf4853e921cfbf5de.tar
android_bootable_recovery-7b4c7a681cc4c0a53dc8a8baf4853e921cfbf5de.tar.gz
android_bootable_recovery-7b4c7a681cc4c0a53dc8a8baf4853e921cfbf5de.tar.bz2
android_bootable_recovery-7b4c7a681cc4c0a53dc8a8baf4853e921cfbf5de.tar.lz
android_bootable_recovery-7b4c7a681cc4c0a53dc8a8baf4853e921cfbf5de.tar.xz
android_bootable_recovery-7b4c7a681cc4c0a53dc8a8baf4853e921cfbf5de.tar.zst
android_bootable_recovery-7b4c7a681cc4c0a53dc8a8baf4853e921cfbf5de.zip
Diffstat (limited to 'libblkid/drbdproxy_datalog.c')
-rw-r--r--libblkid/drbdproxy_datalog.c55
1 files changed, 0 insertions, 55 deletions
diff --git a/libblkid/drbdproxy_datalog.c b/libblkid/drbdproxy_datalog.c
deleted file mode 100644
index afe4725a0..000000000
--- a/libblkid/drbdproxy_datalog.c
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright (C) 2011 by Philipp Marek <philipp.marek@linbit.com>
- *
- * This file may be redistributed under the terms of the
- * GNU Lesser General Public License.
- */
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <string.h>
-#include <errno.h>
-#include <ctype.h>
-#include <inttypes.h>
-#include <stddef.h>
-
-#include "superblocks.h"
-
-
-struct log_header_t {
- uint64_t magic;
- uint64_t version;
-
- unsigned char uuid[16];
-
- uint64_t flags;
-} __attribute__((packed));
-
-
-static int probe_drbdproxy_datalog(blkid_probe pr,
- const struct blkid_idmag *mag __attribute__((__unused__)))
-{
- struct log_header_t *lh;
-
- lh = (struct log_header_t *) blkid_probe_get_buffer(pr, 0, sizeof(*lh));
- if (!lh)
- return -1;
-
- blkid_probe_set_uuid(pr, lh->uuid);
- blkid_probe_sprintf_version(pr, "v%jd", le64_to_cpu(lh->version));
-
- return 0;
-}
-
-const struct blkid_idinfo drbdproxy_datalog_idinfo =
-{
- .name = "drbdproxy_datalog",
- .usage = BLKID_USAGE_FILESYSTEM,
- .probefunc = probe_drbdproxy_datalog,
- .minsz = 16*1024,
- .magics =
- {
- { .magic = "DRBDdlh*", .len = 8, .sboff = 0, .kboff = 0 },
- { NULL }
- }
-};