]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - probe-bcache.c
Redo lots of stuff
[bcachefs-tools-debian] / probe-bcache.c
index cc04f53a25a142e04f9ba132aa6255d654edfa61..6ff882a2e2a6d1b4496c9aee9883c481145ba6b3 100644 (file)
@@ -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)))