gluster-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gluster-devel] Fuse mount option: enable-ino32


From: Steve Bakke
Subject: [Gluster-devel] Fuse mount option: enable-ino32
Date: Sat, 15 Sep 2012 14:15:00 -0700 (PDT)

All,

Just compiled and installed the Sept 15 git which includes the fuse mount option enable-ino32 patch.

Then on the server:
gluster volume fred set enable-ino32 on
Note: volume info prints out nfs.enable-ino32: on, which I guess is ok???

On client:
mount -t glusterfs -o enable-ino32 1.2.3.4:/fred mntfs

Mounts, but still returns wrong entries, using the test program below.  This program works fine with using nfs mount, and with nfs.enable-ino32 on server.  However for other reasons must use native client. 

Do I need to do something else??

Steve



#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <dirent.h>

int main()
{
  DIR* hDir = opendir(".");
  if (hDir==NULL)
    return 1;

  struct dirent dirEntry;
  struct dirent * pOut;
  int err = readdir_r(hDir, &dirEntry, &pOut);
  while(err==0 && pOut!=NULL)
  {
    printf("%s ", dirEntry.d_name);
    err = readdir_r(hDir, &dirEntry, &pOut);
  }

  printf("\nLast Error: %d\n", err);

  return 0;
}





reply via email to

[Prev in Thread] Current Thread [Next in Thread]