summaryrefslogtreecommitdiff
path: root/probe-bcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'probe-bcache.c')
-rw-r--r--probe-bcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/probe-bcache.c b/probe-bcache.c
index cc04f53a..6ff882a2 100644
--- a/probe-bcache.c
+++ b/probe-bcache.c
@@ -1,5 +1,5 @@
/*
- * Author: Kent Overstreet <kmo@daterainc.com>
+ * Author: Kent Overstreet <kent.overstreet@gmail.com>
*
* GPLv2
*/
@@ -66,7 +66,7 @@ int main(int argc, char **argv)
continue;
}
- if (pread(fd, &sb, sizeof(sb), SB_START) != sizeof(sb))
+ if (pread(fd, &sb, sizeof(sb), SB_SECTOR << 9) != sizeof(sb))
continue;
if (memcmp(&sb.magic, &BCACHE_MAGIC, sizeof(sb.magic)))