All of lore.kernel.org
 help / color / mirror / Atom feed
* Bug in autofs4_d_automount()?
@ 2011-06-17 23:29 David Howells
  2011-06-18  9:49 ` Ian Kent
  0 siblings, 1 reply; 2+ messages in thread
From: David Howells @ 2011-06-17 23:29 UTC (permalink / raw)
  To: raven; +Cc: dhowells, autofs, viro


Hi Ian,

At the top of autofs4_d_automount() you have:

	/* The daemon never triggers a mount. */
	if (autofs4_oz_mode(sbi))
		return NULL;

I think this should be returning -EISDIR.  If by some chance we do get here in
Oz mode, this will cause the kernel to just loop forever.  A return of NULL is
meant to indicate that you got a collision and that it should recheck the
mountpoint - but it does not advance path in follow_managed().

-EISDIR is the return to indicate this is to be treated as a normal directory.

David

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-18  9:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-17 23:29 Bug in autofs4_d_automount()? David Howells
2011-06-18  9:49 ` Ian Kent

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.