Alan M Wright wrote:
> Nicolas Williams wrote:
>> On Wed, Mar 05, 2008 at 03:09:22PM -0800, Alan M Wright wrote:
>>> Nicolas Williams wrote:
>>>> Should a CR be filed against mv(1) here?  Or an RFE for an option to it
>>>> that obviates the identical file check, at least on case-insensitive
>>>> file systems?
>>> Fromm an mv perspective this is indistinguishable from
>>> having multiple links to a file.
>>
>> nit: not if the link count is 1 :)
> 
> So ... it would be unfortunate if the thing you wanted
> to rename was a directory.
> 
Maybe I'm making the whole thing easier than it is, but could mv test for the
case sensitivness of the underlaying filesystem and if it insensitive (which
on solaris can be) do a case sensitive comparison of its parameters ( foo and
Foo ) and if they are different, while pointing to the same inode, change them?

This should solve the case even if it is the name of a directory.

Best regards.
Maurilio

-- 
 __________
|  |  | |__| Maurilio Longo
|_|_|_|____| farmaconsult s.r.l.


_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss

Reply via email to