chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
volume_id: really fix endianess bug in linux_raid detection
[elogind.git]
/
extras
/
volume_id
/
lib
/
udf.c
diff --git
a/extras/volume_id/lib/udf.c
b/extras/volume_id/lib/udf.c
index d7497ec51b8e06d1513acfeec667b5a8c159f5c6..ac2f40a9e88429b0f9af567c2a7958da49280916 100644
(file)
--- a/
extras/volume_id/lib/udf.c
+++ b/
extras/volume_id/lib/udf.c
@@
-61,7
+61,7
@@
struct volume_structure_descriptor {
#define UDF_VSD_OFFSET 0x8000
#define UDF_VSD_OFFSET 0x8000
-int volume_id_probe_udf(struct volume_id *id, uint64_t off)
+int volume_id_probe_udf(struct volume_id *id, uint64_t off
, uint64_t size
)
{
struct volume_descriptor *vd;
struct volume_structure_descriptor *vsd;
{
struct volume_descriptor *vd;
struct volume_structure_descriptor *vsd;
@@
-72,7
+72,7
@@
int volume_id_probe_udf(struct volume_id *id, uint64_t off)
unsigned int loc;
unsigned int clen;
unsigned int loc;
unsigned int clen;
-
dbg
("probing at offset 0x%llx", (unsigned long long) off);
+
info
("probing at offset 0x%llx", (unsigned long long) off);
vsd = (struct volume_structure_descriptor *) volume_id_get_buffer(id, off + UDF_VSD_OFFSET, 0x200);
if (vsd == NULL)
vsd = (struct volume_structure_descriptor *) volume_id_get_buffer(id, off + UDF_VSD_OFFSET, 0x200);
if (vsd == NULL)