pkgsrc/devel/libblkid/patches/patch-ad
markd 5efb745928 Initial import libblkid 2.18
The libblkid library is used to identify block devices (disks) as to their
content (e.g. filesystem type) as well as extracting additional information
such as filesystem labels/volume names, unique identifiers/serial numbers, etc.
A common use is to allow use of LABEL= and UUID= tags instead of hard-coding
specific block device names into configuration files.

From util-linux-ng.
2011-01-08 20:43:38 +00:00

24 lines
739 B
Text

$NetBSD: patch-ad,v 1.1.1.1 2011/01/08 20:43:39 markd Exp $
No loff_t in NetBSD
--- shlibs/blkid/src/superblocks/zfs.c.orig 2010-05-19 21:36:25.000000000 +0000
+++ shlibs/blkid/src/superblocks/zfs.c
@@ -66,7 +66,7 @@ struct nvlist {
#define nvdebug(fmt, ...) do { } while(0)
/*#define nvdebug(fmt, a...) printf(fmt, ##a)*/
-static void zfs_extract_guid_name(blkid_probe pr, loff_t offset)
+static void zfs_extract_guid_name(blkid_probe pr, blkid_loff_t offset)
{
struct nvlist *nvl;
struct nvpair *nvp;
@@ -164,7 +164,7 @@ static int probe_zfs(blkid_probe pr, con
uint64_t swab_magic = swab64(UBERBLOCK_MAGIC);
struct zfs_uberblock *ub;
int swab_endian;
- loff_t offset;
+ blkid_loff_t offset;
int tried;
int found;