Jan is right. As atrivial example, even in the "normal" filesystem,
you can "cd .." in the root directory, even though it isn't shown as a
choice.

Fuse allows you to map arbitrary text strings to file-system
operations. The real point of OWFS is allowing reading and writing to
the 1-wire chips without learning the rather picky byte-level command
details.

Directory listings are to show the devices that can be discovered on
the 1-wire bus. We include "directories" like statistics, structure,
bus.x, uncached to remind people what the choices are and to allow
program that work recursively on directory structures to work.

Not everything is shown. For instance Serg Oskin added the /text tree
to change the output of owhttpd. (I'd do it differently now, creating
owtextd as a separate program, but we didn't have owserver at that
point). We could show "text" as a main directory but it adds nothing
to the user experience.

The DS1821 thermostat is a difficult case. It really doesn't fit the
OWFS design. It can't be individually addressed, and can't be easily
included with other chips. It's supposed to be used by itself with a
microprocessor that controls it and knows it's there by the circuit
design. So that's what we did with it's implementation in OWFS. You
have to "know" it's there and just address it.

OWFS will always have trouble with features that can't be
"autodiscovered" Some don't matter (the DS276X can't be distinguished,
nor the DS2406/7). There is also no way to tell if a DS2438 is built
into a humidity circuit, pressure sensor, of leaf sensor. Ditto
thrmocouples. Some of the choices are arbitrary. I had the humidity
sensor, hate configuration files, and wanted to know the humidity, so
it's there by default.

Would a command line switch for the thermostat, to add it to directory
listings, be better?

Paul Alfille

On 7/6/06, Jan Kandziora <[EMAIL PROTECTED]> wrote:
> Am Donnerstag, 6. Juli 2006 09:33 schrieb Krzysztof:
> > Paul Alfille wrote:
> > > Here is an example of my bus:
> > >
> > > amd64:/home/paul # ls /mnt/1wire/
> > > .  ..  01.8660BE090000  06.8FD62D000000  bus.0  settings  statistics
> > > structure  system  uncached
> >
> > I can not see thermostat directory
> >
> > > And here I look at the "thermostat" directory:
> > >
> > > amd64:/home/paul # ls /mnt/1wire/thermostat
> > > .  ..  polarity  temperature  temphigh  templow  type
> >
> > funny, you can not see the thermostat dir by simple `ls` its parent
> > directory :|
> > I thought that you can not `ls` directory that do not exists, FUSE should
> > work as a virtual file system, I can not `cd' nor ls "ghost" directory (no
> > such directory error) hmm, weird:(
> > Maybe thermostat dir is somehow hidden? Can you hide directory in linux? I
> > did not hear about that.
> >
> You can implement *anything* with Linux. So it's perfectly possible to build a
> filesystem that implements hidden files or directories.
>
> Regarding FUSE, it has full support for simulation of any system call a
> "regular" file system would offer. The system call for "list directory
> <path>" could report any data for any given path, even random data, leaving
> you totally confused...
>
> Just try "ls -l owfs/thermostat", and owfs/fuse will answer your calls and
> return some useful information. If this doesn't work, the DS1821 was not
> detected.
>
> Kind regards
>
>         Jan
> --
> DOS: n., A small annoying boot virus that causes random spontaneous
>         system crashes, usually just before saving a massive project.
>         Easily cured by UNIX.  See also MS-DOS, IBM-DOS, DR-DOS.
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Owfs-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to