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)
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)
>>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)
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)
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 (UserMode Linux)
What do you mean by subdir? Does it require a full directory listing? At least it would "prime the pump" for the subsequent directory traversal by filling the cache. The current directory cache scheme has us add each entry, and then a null entry to flag the end of the directory. If we need to keep more aggregate data (number of entries, existence of simultaneous or alarm-capable devices,...) we could just make a new cache entry to hold all the "aggregate" data. This would also help eliminate a subtle potential race condition when the directory times out while being listed. Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Christian Magnusson Sent: Friday, April 15, 2005 11:21 AM To: owfs-developers Subject: RE: [Owfs-developers] OWFS and FUSE Debugging with UML (UserMode 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=ick ___ 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 (UserMode Linux)
st_nlink should be set to the number of sub directories + 2 (. & ..) Like this directory structure: /dir/. st_nlink = 5 (.+..+/dir/dir1/+/dir/dir2/+/dir/dir3/) /dir/.. st_nlink = 23 (number of dirs in root dir) /dir/dir1/. st_nlink = 3 (.+..+/dir/dir1/dir1b) /dir/dir1/..st_nlink = 5 /dir/dir1/dir1b/. st_nlink = 2 (no subdirs except .+..) /dir/dir1/dir1b/.. st_nlink = 3 /dir/dir1/file1 st_nlink = 1 /dir/dir2/. st_nlink = 2 (no subdirs except .+..) /dir/dir2/..st_nlink = 5 /dir/dir3/. st_nlink = 2 (no subdirs except .+..) /dir/dir3/..st_nlink = 5 /dir/file1 st_nlink = 1 /dir/file2 st_nlink = 1 I don't think we can use any cache to determine the number of directories very easy in an accurate way. Let's say a user trig a call to FS_dir(dirfunc) which create the directory listing. Some milli-seconds (or longer) later the user will call fstat("/dir/") fstat("/dir/dir1") fstat("/dir/dir2") fstat("/dir/dir3") fstat("/dir/file1") fstat("/dir/file2") to get extended information about the dir-entry. Some other process might have made a new FS_realdir and found more 1-wire devices on the network after the first FS_dir() and before fstat("/"). This will result into a wrong result from fstat("/"). Even if we save a new cache entry to hold the data (st_nlink) for each directory, it won't be accurate since it could have changed by another thread. Perhaps it's possible to save the st_nlink + threadid in a separate cache to hold the correct value for x seconds. (don't know if it's possible yet... just an idea) If a new thread from fuse calls fstat("/dir1/") WITHOUT doing a FS_dir("/dir/") first, then we don't have a valid cache entry for st_nlink, and fstat("/dir1/.") will force us to do a complete search of all devices in that directory first before returning st_nlink. Am I totally wrong here, it does it make any sense for you...? /Christian On Fri, 2005-04-15 at 19:05, Alfille, Paul H.,M.D. wrote: > What do you mean by subdir? Does it require a full directory listing? At least > it would "prime the pump" for the subsequent directory traversal by filling > the > cache. > > The current directory cache scheme has us add each entry, and then a null > entry > to flag the end of the directory. If we need to keep more aggregate data > (number > of entries, existence of simultaneous or alarm-capable devices,...) we could > just make a new cache entry to hold all the "aggregate" data. This would also > help eliminate a subtle potential race condition when the directory times out > while being listed. > > Paul > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > Christian Magnusson > Sent: Friday, April 15, 2005 11:21 AM > To: owfs-developers > Subject: RE: [Owfs-developers] OWFS and FUSE Debugging with UML > (UserMode 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 --- 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. St
[Owfs-developers] Just some news on 1-wire stepper control
Hi all, I am very busy right now so I decided to skip one wire stepper control for the actual project since its just a fancy add on and I want to get get this finished as soon as possible. All my projects were based on Stripboard layouts and i got problem with bridges between two contacts so I etched my first pcb today (after 3 years of hobby electronics this moment had to come sooner or later). Its a one wire relais board with 3 relais (220V / 16A) controlled by a DS2408 and 3 connectors for sensors. The Relais In Outs will be heavily covered with solder to be on the safe side. I will drill and solder it tomorrow, I hope it will work (press both thumbs for me guys), so far I am very pleased with the etching results, the smd pads for the ds2408 look fine and I am very happy that I wont have to bother with flying wires between smd chip feet anymore. Electrical Skill +1 XP I will keep you udpdate when everything works (or not), Paul I will sent you some Pics when the project is finished Simon --- 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 (UserMode Linux)
I have made some more tests with calculating the st_nlink in FS_fstat(). If you define CALC_NLINK in ow_fstat.c it will look somewhat better, but it's harder to calculate number of dirs in all devices, and in sub-directories. Root directory with entries are almost working. Device 02.* has two subdirectories (pages/ settings/) and therefor st_nlink is 4. Device 10.* only contain files, and st_nlink is 2. Separate calculation has to be made for all other special directories such as alarm, system, etc... Haven't looked at that yet. BTW: Found a bug where pnnext.si.sg wasn't set to pn->si.sg in all FS_*_seek() functions. That made the second adapter loose the temperature-scale and cache settings from the calling owfs. What do you think about it... Should we try to complete the st_nlink calculation for all directories? I've checked in the changes so you can look at it. /Christian [EMAIL PROTECTED] mag]# ls -al /var/1wire/ total 4 drwxr-xr-x 17 root root1 Apr 16 02:56 ./ drwxr-xr-x 23 root root 4096 Mar 23 16:12 ../ drwxr-xr-x 4 root root1 Apr 16 03:00 02.F0A8C200/ drwxr-xr-x 2 root root1 Apr 16 03:00 10.061847000800/ drwxr-xr-x 2 root root1 Apr 16 03:00 10.1A9246000800/ drwxr-xr-x 2 root root1 Apr 16 03:00 10.233B4800/ drwxr-xr-x 2 root root1 Apr 16 03:00 10.2BD346000800/ drwxr-xr-x 2 root root1 Apr 16 03:00 10.4D8746000800/ drwxr-xr-x 2 root root1 Apr 16 03:00 10.5D1947000800/ drwxr-xr-x 2 root root1 Apr 16 03:00 10.6D015800/ drwxr-xr-x 2 root root1 Apr 16 03:00 10.A2284800/ drwxr-xr-x 2 root root1 Apr 16 03:00 10.B3E166000800/ drwxr-xr-x 2 root root1 Apr 16 03:00 10.E2C746000800/ drwxr-xr-x 2 root root1 Apr 16 03:00 10.E54347000800/ drwxr-xr-x 3 root root1 Apr 16 03:00 12.24F82400/ drwxr-xr-x 3 root root1 Apr 16 03:00 12.5E1A2400/ drwxr-xr-x 17 root root1 Apr 16 02:56 alarm/ drwxr-xr-x 17 root root1 Apr 16 02:56 bus.0/ drwxr-xr-x 2 root root1 Apr 16 03:00 FF.72020100/ drwxr-xr-x 17 root root1 Apr 16 02:56 settings/ drwxr-xr-x 2 root root1 Apr 16 03:00 simultaneous/ drwxr-xr-x 17 root root1 Apr 16 02:56 statistics/ drwxr-xr-x 17 root root1 Apr 16 02:56 structure/ drwxr-xr-x 17 root root1 Apr 16 02:56 system/ drwxr-xr-x 17 root root1 Apr 16 02:56 uncached/ --- 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] owftpd updates
Hello from Gregg C Levine I just finished a CVS update, and am building code now. It turns out I needed to enable a few things with the configure script. The TCL one, and the FTP one as well. Right now with the usual warnings, and complaints its building properly. Paul, did we release what's in CVS, and the download pages missed it? It turns out to build correctly with the version of FUSE that I'm using I needed to go directly to the CVS storage for the OWFS kit, rather then any of the later releases stored on the download servers. And speaking of FUSE, have they gotten past the pre-releases of their 2.2 release? --- Gregg C Levine [EMAIL PROTECTED] "The Force will be with you...Always." Obi-Wan Kenobi "Use the Force, Luke." Obi-Wan Kenobi > -Original Message- > From: [EMAIL PROTECTED] [mailto:owfs-developers- > [EMAIL PROTECTED] On Behalf Of Christian Magnusson > Sent: Wednesday, April 13, 2005 11:45 AM > To: owfs-developers > Subject: [Owfs-developers] owftpd updates > > > I've made some quick updates to owftpd and it reads from the > actual 1-wire adapter now. > > dir & read should work now. > I haven't looked at the write functions yet. > > owftpd --foreground -u1 -u2 -p 8021 > Try "ncftp ftp://localhost:8021/"; or "ftp localhost 8021" > User ftp > > > -- > 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_id=6595&alloc_id=14396&op=click > ___ > Owfs-developers mailing list > Owfs-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/owfs-developers --- 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] Weekly progress
I'll try the ewrt firmware before I go back to the OpenWRT experimental. Where can I download it from? On 4/13/05, Christian Magnusson <[EMAIL PROTECTED]> wrote: > > It was a long time since the weekly progress was updated > on the web-site. I guess there are many things to add since the > last note February 12th. > > /bus.x directories (with cached bus_nr for devices) > WRT54G firmware with owfs (based on ewrt-0.3) > Bug-fixes for ow_ds9097U > Bug-fixes for ow_ds9490.c (some parts re-written) > Updated ds1810, ds1921, ds2423 > ds1923(ds1922,ds2422) support in progress > ds2413 support > overdrive speed support in progress > support simultaneous on all remote servers > > I'm sure there are many other things... so could someone else > complete the list and update the progress list? > > BTW: Are there any brave people out there who want to flash his > WRT54G router and try my new firmware? > > /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 > --- 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