vxfs.c revision 2603474ff9be2418900581da1af5cccc9f13cae1
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering * volume_id - reads filesystem label and uuid
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers * Copyright (C) 2004 Kay Sievers <kay.sievers@vrfy.org>
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering * This program is free software; you can redistribute it and/or modify it
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering * under the terms of the GNU General Public License as published by the
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering * Free Software Foundation version 2 of the License.
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversint volume_id_probe_vxfs(struct volume_id *id, uint64_t off, uint64_t size)
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bcee info("probing at offset 0x%llx\n", (unsigned long long) off);
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering vxs = (struct vxfs_super *) volume_id_get_buffer(id, off + 0x200, 0x200);
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera if (vxs->vs_magic == cpu_to_le32(VXFS_SUPER_MAGIC)) {
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera snprintf(id->type_version, sizeof(id->type_version)-1, "%u", (unsigned int) vxs->vs_version);