Quoth Go Phone <[email protected]>:
> Hello,
>
> Key-value lookups are expensive over 9p. We need a walk(), open(),
> read() and close(). I am wondering if adding a lookup() function to
> struct Dev adds much value?
>
> Thanks
> Joe
>
note that you need a separate Twalk message no matter what,
so you can determine if you're crossing a mountpoint. Imagine:
# starting fronm a fresh ns, put a file
# on the real file system there
% mkdir /usr/ori/kv
% touch /usr/ori/kv/value
# then mount in the kv store
% bind /dev/null /usr/ori/kv/store/value
# then do a lookup
% lookup /usr/ori/kv/store/value
Because 'lookup' would be a single message,
you'd return the empty file from the root
file system, and not cross the mountpoint
into the kv store.
------------------------------------------
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/T2c76f7c236858f21-M9d6adc7294ccf369050cbf37
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription