Skip to contentSkip to conversation

qstr abuse in git-cifs

DISCUSSION Steve French 1 participant 1 message Nov 6, 2007 VFS

lore
Share & tools
lore
#0 lore raw
Quoted 1 line

I suspect that bad things are happening in there

I doubt that it is too bad since various filesystems (including JFS and CIFS) have always written over qstr->name in these dentries in
order to better handle case insensitive compares. Other than trying
to remove the compiler warning recently (mainline throws the same warning), I didn't see what changed other than now displaying a
warning. I agree that it looks strange, but I also don't see a
trivial way to change it. Any ideas on how to prevent the case of an existing negative dentry from taking precedence? Creating more dentries for these duplicates would seem like a worse idea.

Quoted 3 lines

fs/cifs/dir.c: In function 'cifs_ci_compare':
fs/cifs/dir.c:596: warning: passing argument 1 of '__constant_memcpy' discards qualifiers from pointer target type fs/cifs/dir.c:596: warning: passing argument 1 of '__memcpy' discards qualifiers from pointer target type

Signature · 3 lines
Thanks,

Steve