]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cfuse: warn on 32-bit kernels
authorSage Weil <sage@newdream.net>
Wed, 18 Jun 2008 14:11:20 +0000 (07:11 -0700)
committerSage Weil <sage@newdream.net>
Wed, 18 Jun 2008 14:11:20 +0000 (07:11 -0700)
src/cfuse.cc

index bcd6194d7d25e09c274553bd7f2bb4f1e01be3f7..6e10b51e4a78f3808926e2425747bf8204f7aa45 100644 (file)
@@ -52,6 +52,14 @@ int main(int argc, const char **argv, const char *envp[]) {
 
   if (g_conf.clock_tare) g_clock.tare();
 
+  // check for 32-bit arch
+  if (sizeof(long) == 4) {
+    cerr << std::endl;
+    cerr << "WARNING: Ceph inode numbers are 64 bits wide, and FUSE on 32-bit kernels does" << std::endl;
+    cerr << "         not cope well with that situation.  Expect to crash shortly." << std::endl;
+    cerr << std::endl;
+  }
+
   // get monmap
   MonMap monmap;
   MonClient mc;