On Sun, 9 Apr 2000, Dunlap, Randy wrote:
> So with one value per "file," how do you handle the
> well-known problem of inconsistent data, i.e.,
> one or more values being updated, program reads
> file value(s), some more value(s) updated, program
> reams some more value(s)?
How easy would it be to have a file in each directory that includes all of
the data within that tree? For example:
/proc/ide/hda includes the files cache, capacity, driver, etc.
/proc/ide/hda/hda (or whatever it's named) is a single file:
cache=128
capacity=3913056
driver=ide-disk version 1.08
...
/proc/ide/ide is a single file:
channel=0
hda={
cache=128
capacity=3913056
driver=ide-disk version 1.08
...
}
hdb={
...
}
hdc={
...
}
...
This approach would make it possible to use the simple
single-value-per-file method, except when a large number of values are
needed immediately or when two simultaneously read values need to be
consistent. Would this be practical?
----------------------------------------------
Andrew McNabb
Argus Systems Group
amcnabb@argus-systems.com
----------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:13 EST