[Bugs] [Bug 1222150] New: readdirp return 64bits inodes even if enable-ino32 is set

bugzilla at redhat.com bugzilla at redhat.com
Fri May 15 21:46:50 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1222150

            Bug ID: 1222150
           Summary: readdirp return 64bits inodes even if enable-ino32 is
                    set
           Product: GlusterFS
           Version: 3.5.2
         Component: fuse
          Severity: high
          Assignee: bugs at gluster.org
          Reporter: cyril at peponnet.fr
                CC: bugs at gluster.org, gluster-bugs at redhat.com



Description of problem:

No issue using nfs only with fuse.

For 32bits applications on 64bits systems, ino32 is mandadory but the readdirp
optimisation still return 64 bits inodes when getdent syscall is triggerd.


Version-Release number of selected component (if applicable):

How reproducible:

Always

Steps to Reproduce:
1. Have a 32 bits application listing directories on a 64 bits system
2. Run it
3. Cry

Actual results:

open("/usr/global/lib/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC)
= 5
getdents(5, 0x9b27308, 32768)           = -1 EOVERFLOW (Value too large for
defined data type)

Expected results:

open("/usr/global/lib/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC)
= 5
getdents(5, /* 1 entries */, 32768)     = 88

Additional info:


use use-readdirp=off when mounting the volume as a workaround but impact
performaces.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list