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