Maurilio Longo wrote:
> 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.

Without a new command line option, that's not a good idea because
mv would behave differently dependent on the underlying file system
and scripts that rely on the mv exit status could break.

If the file system is case-insensitive, why do you care about the 
on-disk case?  And if you do care, it's easy to change it.

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

Reply via email to