From 7b4c7a681cc4c0a53dc8a8baf4853e921cfbf5de Mon Sep 17 00:00:00 2001 From: bigbiff Date: Thu, 1 Jan 2015 19:44:14 -0500 Subject: Update blkid to 2.25.0 Break libblkid into 4 libraries: libblkid, libuuid, libutil-linux and libfdisk. This should help in later patch updates. Change-Id: I680d9a7feb031e5c29a603e9c58aff4b65826262 --- libblkid/cramfs.c | 62 ------------------------------------------------------- 1 file changed, 62 deletions(-) delete mode 100644 libblkid/cramfs.c (limited to 'libblkid/cramfs.c') diff --git a/libblkid/cramfs.c b/libblkid/cramfs.c deleted file mode 100644 index b58ed08cb..000000000 --- a/libblkid/cramfs.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (C) 1999 by Andries Brouwer - * Copyright (C) 1999, 2000, 2003 by Theodore Ts'o - * Copyright (C) 2001 by Andreas Dilger - * Copyright (C) 2004 Kay Sievers - * Copyright (C) 2008 Karel Zak - * - * This file may be redistributed under the terms of the - * GNU Lesser General Public License. - */ - -#include -#include -#include -#include -#include - -#include "superblocks.h" - -struct cramfs_super -{ - uint8_t magic[4]; - uint32_t size; - uint32_t flags; - uint32_t future; - uint8_t signature[16]; - struct cramfs_info - { - uint32_t crc; - uint32_t edition; - uint32_t blocks; - uint32_t files; - } __attribute__((packed)) info; - uint8_t name[16]; -} __attribute__((packed)); - -static int probe_cramfs(blkid_probe pr, const struct blkid_idmag *mag) -{ - struct cramfs_super *cs; - - cs = blkid_probe_get_sb(pr, mag, struct cramfs_super); - if (!cs) - return -1; - - blkid_probe_set_label(pr, cs->name, sizeof(cs->name)); - return 0; -} - -const struct blkid_idinfo cramfs_idinfo = -{ - .name = "cramfs", - .usage = BLKID_USAGE_FILESYSTEM, - .probefunc = probe_cramfs, - .magics = - { - { "\x45\x3d\xcd\x28", 4, 0, 0 }, - { "\x28\xcd\x3d\x45", 4, 0, 0 }, - { NULL } - } -}; - - -- cgit v1.2.3