Jan Engelhardt wrote:
On Thursday 2013-08-08 23:37, Linda Walsh wrote:
Does linux remove // from the paths before passing them to drivers?
Yes, see fs/namei.c:link_path_walk:
static int link_path_walk(const char *name, struct nameidata *nd) { struct path next; int err;
while (*name=='/') name++;
But that is not a problem, because drivers only have to answer to the VFS, not to the user.
But VFS, unlike 'users' has it's own bug subcategory under "filesystems" in the lkml bugzilla... ;-) `Sides's wouldn't it be better behavior to have it be POSIX compatible and preserve the '//' and and hand off the path to drivers (user-mode or kernel) un-mangled?
(I suppose you mean > filesystems)
"Filesystems" are database formats on media. They need drivers to interact with something -- like a linux kernel. To have an object participate in the the "the kernel", it needs something that knows the "rules of the road" for the specific OS. Similarly, a hired "driver" is often for foreign objects (file systems, hardware, "foreigners") when the 'foreign' body doesn't know the "rules of the kernel" for each OS (or Country) it interacts with. It's a sign of similar base points when the foci of the argument are on semantics. ;-) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org