James Carlson wrote:
> Ashish Joshi writes:
> 
>>   So, there needs to be a distinction between general success (0) and
>>   mount success (4) because allocate needs to know that it has to create
>>   device nodes in the non-global zone after general success from
>>   device_clean, but not after mount success from device_clean.
> 
> Because something else creates the nodes or because the nodes are not
> needed or wanted in that case?
> 
> Having multiple flavors of success seems like a mistake to me (given
> the usual design pattern for UNIX interfaces), but I guess it's just a
> nit and I'll let it drop.

I wish you wouldn't; it seems wrong to me too.

It seems to me that allocate should create the device nodes regardless 
of whether a file system was mounted, and therefore a single exit status 
for success is sufficient. Even if I mounted a file system at allocation 
time, I should be able to unmount it and access the device node directly 
without deallocating first. Doesn't that match how it works in the 
global zone?

A more basic question: This case mentions the fact that mounting file 
systems during allocation is unique to TX, but I believe the difference 
is simply due to historical accident. Wouldn't it make sense to provide 
this feature to all Solaris users of device allocation, regardless of 
whether TX is enabled or not?

        Scott

Reply via email to