lib_LIBRARIES = libblkid.a
libblkid_a_SOURCES = cache.c dev.c devname.c devno.c getsize.c llseek.c \
probe.c read.c resolve.c save.c tag.c version.c verify.c \
- blkid.h blkidP.h list.h blkid_types.h probers/probers.h
+ blkid.h blkidP.h list.h blkid_types.h probers/probers.h \
+ $(top_srcdir)/lib/blkdev.c $(top_srcdir)/lib/linux_version.c
libblkid_a_LIBADD = probers/libprobers.a
libblkid_a_CFLAGS = -fPIC
#endif
#include <stdarg.h>
+#include "blkdev.h"
#include "blkidP.h"
#include "probers/probers.h"
&adraid_idinfo,
&ddfraid_idinfo,
&iswraid_idinfo,
- &jmicron_idinfo,
- &lsi_idinfo,
+ &jmraid_idinfo,
+ &lsiraid_idinfo,
&nvraid_idinfo,
&pdcraid_idinfo,
&silraid_idinfo,
pr->fd = fd;
pr->off = off;
- pr->size = size;
+
+ if (!size)
+ blkdev_get_size(fd, (unsigned long long *) &pr->size);
+ else
+ pr->size = size;
/* read SB to test if the device is readable */
if (!blkid_probe_get_buffer(pr, 0, 0x200))
extern const struct blkid_idinfo adraid_idinfo;
extern const struct blkid_idinfo ddfraid_idinfo;
extern const struct blkid_idinfo iswraid_idinfo;
-extern const struct blkid_idinfo jmicron_idinfo;
-extern const struct blkid_idinfo lsi_idinfo;
+extern const struct blkid_idinfo jmraid_idinfo;
+extern const struct blkid_idinfo lsiraid_idinfo;
extern const struct blkid_idinfo nvraid_idinfo;
extern const struct blkid_idinfo pdcraid_idinfo;
extern const struct blkid_idinfo silraid_idinfo;