From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Thu, 27 Jul 2006 15:36:44 -0700 From: "Russ Cox" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: Re: [9fans] mount 9P on Linux and FreeBSD via FUSE In-Reply-To: <14ec7b180607271513v490c034fq1c47849889920e33@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6F64DFDC-F660-44A1-9CD7-D9E4ADD76086@lanl.gov> <3f5189696e13a66e3201717b0c2cf577@terzarima.net> <14ec7b180607271513v490c034fq1c47849889920e33@mail.gmail.com> Topicbox-Message-UUID: 90a95514-ead1-11e9-9d60-3106f5b1d025 "Fixed." tux=; cvs diff -u -r1.7 main.c Index: main.c =================================================================== RCS file: /home/am3/rsc/cvsroot/plan9/src/cmd/9pfuse/main.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- main.c 27 Jul 2006 05:14:16 -0000 1.7 +++ main.c 27 Jul 2006 22:36:00 -0000 1.8 @@ -23,8 +23,12 @@ #define O_DIRECTORY 0 #endif #ifndef O_LARGEFILE +#if defined(__linux__) +#define O_LARGEFILE 0100000 /* Sigh */ +#else #define O_LARGEFILE 0 #endif +#endif int debug; tux=; On 7/27/06, andrey mirtchovski wrote: > trying on the aforementioned intel with the aforementioned linux > distribution i get 'permission denied' errors every time i try to > access the mounted directory. > > turns out that fuse sends out an extra flag, O_LARGEFILE=0x8000, which > 9pfuse.c thinks it has masked. it also turns out that the two programs > involved differ over what O_LARGEFILE should be defined as: > O_LARGEFILE is 0 for 9pfuse.c (actually it was defined at compile time > as it couldn't find it in the include files) > > bits/fcntl.h has the following to say (after a few spelling errors): > > #ifdef __USE_LARGEFILE64 > # if __WORDSIZE == 64 > # define O_LARGEFILE 0 > # else > # define O_LARGEFILE 0100000 > # endif > #endif > > this particular standard installation has __USE_LARGEFILE64 undefined, > and i assume that the one which the kernel was compiled on did. > > i suppose i should recompile the fuse module, or fusermount or > something else... i feel a sacrifice is required. > >