Re: [fpc-pascal] Findfirst/findnext with a samba share

2013-03-01 Thread Ludo Brands
On 03/01/2013 04:37 PM, Michael Van Canneyt wrote: > > On Fri, 1 Mar 2013, Ludo Brands wrote: > >> What about just using a 32k buffer? > > No problem with that as far as I am concerned. > > Since the code is shared between embedded and non-embedded targets, it > might be better to have the opti

Re: [fpc-pascal] Findfirst/findnext with a samba share

2013-03-01 Thread Ludo Brands
On 03/01/2013 06:02 PM, Sven Barth wrote: > > While the kernel might pass less than 256 characters the dirent > structure contains a "dd_nextoff" field which is already used in FPC's > fpreaddir call to locate the next returned entry. > Yes, I know. Otherwise we would lose more than one file na

Re: [fpc-pascal] Findfirst/findnext with a samba share

2013-03-01 Thread Sven Barth
On 01.03.2013 16:08, Ludo Brands wrote: On 03/01/2013 12:52 PM, Sven Barth wrote: Currently FPC allocates only one pdirent in fpopendir (rtl/linux/ossysc.inc). Maybe it should first stat the directory and then decide based on st_blksize how much pdirent entries to allocate (but it should also p

Re: [fpc-pascal] Findfirst/findnext with a samba share

2013-03-01 Thread Michael Van Canneyt
On Fri, 1 Mar 2013, Ludo Brands wrote: On 03/01/2013 12:52 PM, Sven Barth wrote: Currently FPC allocates only one pdirent in fpopendir (rtl/linux/ossysc.inc). Maybe it should first stat the directory and then decide based on st_blksize how much pdirent entries to allocate (but it should also

Re: [fpc-pascal] Findfirst/findnext with a samba share

2013-03-01 Thread Ludo Brands
On 03/01/2013 12:52 PM, Sven Barth wrote: > Currently FPC allocates only one pdirent in fpopendir > (rtl/linux/ossysc.inc). Maybe it should first stat the directory and > then decide based on st_blksize how much pdirent entries to allocate > (but it should also provide a sane default, as there is

Re: [fpc-pascal] Findfirst/findnext with a samba share

2013-03-01 Thread Sven Barth
On 01.03.2013 12:31, Marco van de Voort wrote: In our previous episode, Ludo Brands said: The question is what is different in nautilus and midnight commander comparing to fpc directoy-listing functions that allows them to list directories correctly in the bug's case? The difference with oth

Re: [fpc-pascal] Findfirst/findnext with a samba share

2013-03-01 Thread Marco van de Voort
In our previous episode, Ludo Brands said: > > > > The question is what is different in nautilus and midnight commander > > comparing to fpc directoy-listing functions that allows them to list > > directories correctly in the bug's case? > > > > The difference with other tools is that FPC gives

Re: [fpc-pascal] Findfirst/findnext with a samba share

2013-03-01 Thread Ludo Brands
On 03/01/2013 10:55 AM, Max Vlasov wrote: > > On Fri, Mar 1, 2013 at 12:32 PM, Ludo Brands > wrote: > > On 03/01/2013 09:14 AM, Max Vlasov wrote: > > > > The question is what is different in nautilus and midnight commander > > comparing to fpc directoy

Re: [fpc-pascal] Findfirst/findnext with a samba share

2013-03-01 Thread Max Vlasov
On Fri, Mar 1, 2013 at 12:32 PM, Ludo Brands wrote: > On 03/01/2013 09:14 AM, Max Vlasov wrote: > > > > The question is what is different in nautilus and midnight commander > > comparing to fpc directoy-listing functions that allows them to list > > directories correctly in the bug's case? > > >

Re: [fpc-pascal] Findfirst/findnext with a samba share

2013-03-01 Thread Ludo Brands
On 03/01/2013 09:14 AM, Max Vlasov wrote: > Hi, > > Working with lazarus on Linux Mint I noticed that when I mount a windows > shared with "Connect to server", everything works fine (Nautilus, > Midnight Commander, Lazarus file operations). But meeting that .gvfs > folder is hidden, I tried to mou