| * 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. |
| } __attribute__((packed)); |
| static int probe_drbdproxy_datalog(blkid_probe pr, |
| const struct blkid_idmag *mag __attribute__((__unused__))) |
| lh = (struct log_header_t *) blkid_probe_get_buffer(pr, 0, sizeof(*lh)); |
| blkid_probe_set_uuid(pr, lh->uuid); |
| blkid_probe_sprintf_version(pr, "v%jd", le64_to_cpu(lh->version)); |
| const struct blkid_idinfo drbdproxy_datalog_idinfo = |
| .name = "drbdproxy_datalog", |
| .usage = BLKID_USAGE_FILESYSTEM, |
| .probefunc = probe_drbdproxy_datalog, |
| { .magic = "DRBDdlh*", .len = 8, .sboff = 0, .kboff = 0 }, |