Hi all,
what does this mean?
if [-b /devices/pseudo/lofi@0:$devid]
then
<something>
fi
here is what i know..
it checks if the specified argument no($devid) in some function call is made into a block device and then proceeds with the execution of the loop.
However am not understand what lofi@0:means?
also is there any book or online data sheets where i can learn of such intricate issues?
man lofiadm will only give me details of what lofiadm mean.
I know what it means and what it does, how ever i wanted to know what
lofi@0 means, pls pay attention to @0...
besides that , i would like to know when a file goes and sits in /devices/pseudo/
thanks
A shell script relying on /devices entries is broken. It should use the documented and supported /dev entries instead. There is probably no need to know what the directory and file names in the /devices tree means unless you are a kernel developer.