RE: [Owfs-developers] OWFS and FUSE Debugging with UML (User Mode Linux)
I was trying to fix it this afternoon... in FS_fstat.c: stbuf->st_nlink = 2 ; // plus number of sub-directories stbuf->st_nlink += FS_nr_subdirs(&pn) ; Tried to read from cache how many subdirs was returned by FS_dir() but I stumbled into some other problem when I tried to do it. It seems like I forgot to cache devices returned from ServerDir(). Is it worth the effort of setting st_nlink to the correct value or should we keep it the way it is? /Christian On Fri, 2005-04-15 at 09:49 -0400, Alfille, Paul H.,M.D. wrote: > I've asked this question of fuse. This is the response I got: > > From: <[EMAIL PROTECTED]> > Re: "find" command > 2004-05-11 12:14 > use the -noleaf option to find > (find uses the following parameters to determine whether it should recurse > into a subdirectory) > > nr_links must be >= 3 > size must be > 0 > and must be a driectory > > so just return those in the getattr for your directories and you wont have > to use -noleaf. > > --- > Cody Pisto <[EMAIL PROTECTED]> > > > I"m having trouble getting the find command to search through fuse > > directories. What settings do I need in "getattr"? > > > > Paul Alfille > > > > > > > > --- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&opÃk > ___ > Owfs-developers mailing list > Owfs-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/owfs-developers -- Christian Magnusson <[EMAIL PROTECTED]> --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click ___ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers
RE: [Owfs-developers] OWFS and FUSE Debugging with UML (User Mode Linux)
I've asked this question of fuse. This is the response I got: From: <[EMAIL PROTECTED]> Re: "find" command 2004-05-11 12:14 use the -noleaf option to find (find uses the following parameters to determine whether it should recurse into a subdirectory) nr_links must be >= 3 size must be > 0 and must be a driectory so just return those in the getattr for your directories and you wont have to use -noleaf. --- Cody Pisto <[EMAIL PROTECTED]> > I"m having trouble getting the find command to search through fuse > directories. What settings do I need in "getattr"? > > Paul Alfille > --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click ___ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers
RE: [Owfs-developers] OWFS and FUSE Debugging with UML (User Mode Linux)
>>Try: find /var/1wire/ -noleaf >>and it will probably return what you want. (I think this is what you >>tried to solve.) >>/Christian I did in fact see the -noleaf option, but since it seems mostly intended for 'non-standard' Unix file system (and AFS), I thought perhaps I should make the owfs behaviour more correct. Jack This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers
RE: [Owfs-developers] OWFS and FUSE Debugging with UML (User Mode Linux)
On Fri, 2005-04-15 at 09:02 +0100, [EMAIL PROTECTED] wrote: > In particular, I am struggling to understand why some file utils like > 'find' (even without any arcane options) don't seem to behave correctly. > I noticed this too before... It seems to be the lack of '.' and '..' entires in some directories. Try: find /var/1wire/ -noleaf and it will probably return what you want. (I think this is what you tried to solve.) /Christian --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers
RE: [Owfs-developers] OWFS and FUSE Debugging with UML (User Mode Linux)
>>Haven't tried UML, I suspect the issue would be more with fuse and libusb. Actually, I guess I should have mentioned this specifically. owfs debugging isn't the problem, as you rightly state, when it is in the foreground. I find that I am trying to understand the relationship between owfs and fuse and of course can't break into fuse code. In particular, I am struggling to understand why some file utils like 'find' (even without any arcane options) don't seem to behave correctly. This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers
RE: [Owfs-developers] OWFS and FUSE Debugging with UML (User Mode Linux)
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Thursday, April 14, 2005 5:50 AM To: owfs-developers@lists.sourceforge.net Subject: [Owfs-developers] OWFS and FUSE Debugging with UML (User Mode Linux) Has anyone had any experience debugging owfs modules ( and fuse ) by way of User Mode Linux. I have been having a look at UML, and it seems far preferable to printk calls. - Since OWFS is running in user space, printk shouldn't be required. I use either ddd or printf's but have to run in --foreground to do it. Haven't tried UML, I suspect the issue would be more with fuse and libusb. Paul --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click ___ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers