Re: CIFS: Rename bug on servers not supporting inode numbers

From: Björn JACKE
Date: Fri Nov 04 2011 - 07:52:11 EST


On 2011-11-03 at 15:20 +0000 Anton Altaparmakov sent off:
> Hi,
>
> Our CIFS server problems seem to have no endâ The Novell CIFS server does not support server inode numbers (when I try the mount option I get the message it is being turned off as server does not support it) and thus each inode gets a different number each time it is accessed and it gets a different number again for each readdir call.
>
> The fun happens with rename() when the rename source and target only differ in case, e.g.
>
> touch foo
> mv foo Foo

somehow related seems https://bugzilla.kernel.org/show_bug.cgi?id=39512
(as long as kernel bugzilla is dead, see
http://www.linux.sgi.com/archives/xfs-masters/2011-07/msg00022.html )

Case insensitive filesystems seem to be a problem in general on Linux. Not sure
how far kernel and/or glibc are involved in the problem. As a workaround for
the mess you need to do a temporary rename to a different name (not just a case
equivalent name).

BjÃrn
--
SerNet GmbH, Bahnhofsallee 1b, 37081 GÃttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG GÃttingen, HRB 2816, GF: Dr. Johannes Loxen
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/