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
/
reiserfs.c
diff --git
a/extras/volume_id/lib/reiserfs.c
b/extras/volume_id/lib/reiserfs.c
index b5706f86e0ff9024e5a03bf63545a6ba306b2fa5..1f219e5bded05eb698182658aa075ac91f2e98c7 100644
(file)
--- a/
extras/volume_id/lib/reiserfs.c
+++ b/
extras/volume_id/lib/reiserfs.c
@@
-54,19
+54,19
@@
struct reiser4_super_block {
#define REISERFS1_SUPERBLOCK_OFFSET 0x2000
#define REISERFS_SUPERBLOCK_OFFSET 0x10000
#define REISERFS1_SUPERBLOCK_OFFSET 0x2000
#define REISERFS_SUPERBLOCK_OFFSET 0x10000
-int volume_id_probe_reiserfs(struct volume_id *id, uint64_t off)
+int volume_id_probe_reiserfs(struct volume_id *id, uint64_t off
, uint64_t size
)
{
struct reiserfs_super_block *rs;
struct reiser4_super_block *rs4;
uint8_t *buf;
{
struct reiserfs_super_block *rs;
struct reiser4_super_block *rs4;
uint8_t *buf;
-
dbg
("probing at offset 0x%llx", (unsigned long long) off);
+
info
("probing at offset 0x%llx", (unsigned long long) off);
buf = volume_id_get_buffer(id, off + REISERFS_SUPERBLOCK_OFFSET, 0x200);
if (buf == NULL)
return -1;
buf = volume_id_get_buffer(id, off + REISERFS_SUPERBLOCK_OFFSET, 0x200);
if (buf == NULL)
return -1;
- rs = (struct reiserfs_super_block *) buf;
;
+ rs = (struct reiserfs_super_block *) buf;
if (memcmp(rs->magic, "ReIsErFs", 8) == 0) {
strcpy(id->type_version, "3.5");
id->type = "reiserfs";
if (memcmp(rs->magic, "ReIsErFs", 8) == 0) {
strcpy(id->type_version, "3.5");
id->type = "reiserfs";