All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Waychison <Michael.Waychison@Sun.COM>
To: jmoyer@redhat.com
Cc: autofs@linux.kernel.org, dhowells@redhat.com
Subject: Re: backfstype patch.
Date: Wed, 30 Jun 2004 10:28:48 -0400	[thread overview]
Message-ID: <40E2CE20.1050103@sun.com> (raw)
In-Reply-To: <16610.50525.858094.848839@segfault.boston.redhat.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Resending as I forgot to CC David :)

Jeff Moyer wrote:
> ==> Regarding Re: [autofs] backfstype patch.; Mike Waychison
<Michael.Waychison@Sun.COM> adds:
>
> Michael.Waychison> -----BEGIN PGP SIGNED MESSAGE-----
> Hash> SHA1
>
> Michael.Waychison> Hans Deragon wrote:
>
>>>Greetings.
>>>
>>>
>>>Attached, my patch for supporting backfstype.  If the OS is Linux and
>>>cachefs is detected, this fs is ignored and no attempt is made to mount
>>>a cachefs kernel module (none exist).  This way we avoid useless error
>>>messages in syslog.
>>>
>>>If mounting the fstype fails or is cachefs, backfstype is then tried.
>>>
>>>It works fine under RHL 9.  Only one file was changed: parse_sun.c.  The
>>>changes were made from the 4.1.3 branch.  Changes are very localized and
>>>I believe they are safe (though code inspection is always desired).
>>>
>>>Please confirm if my patch has been accepted.
>>>
>
>
> Michael.Waychison> Why do this in the parser when it can easily be done in
> Michael.Waychison> a mount module?
>
> Care to expound a bit?  I'm not sure what people use backfstype for,
but if
> it is generic, then you wouldn't want to handle every case in every mount
> module.  But I think I'm missing your point.
>
> It makes some sense to me to handle this above the mount module, simply
> because you could call into two different modules.
>
> So, care to set me straight?  ;)
>
> -Jeff

I'm CC'ing David as he may have a better view of what the cachefs status is.

Backfstype is a fstype=cachefs specific mount option.  Specifically:

 - add cachefs to the not_generic array in daemon/mount.c
 - create a new mount module, modules/mount_cachefs.c.  This module
would check for cachefs support available and use it if available.
Otherwise it would rewrite the fstype with the backfstype mount option
and call do_mount again.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA4s4fdQs4kOxk3/MRAvw7AJ9THSEKPZ2FFP73r60fb3QASiJ9RgCggOE0
Csu1J3seKze4LGzuKfvbgh8=
=o36j
-----END PGP SIGNATURE-----

  parent reply	other threads:[~2004-06-30 14:28 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-29 20:10 backfstype patch Hans Deragon
2004-06-30 13:26 ` Jeff Moyer
2004-06-30 14:00   ` raven
2004-06-30 15:01   ` Hans Deragon
2004-06-30 13:31 ` Mike Waychison
2004-06-30 13:51   ` Jeff Moyer
2004-06-30 14:20     ` Mike Waychison
2004-06-30 14:22       ` Jeff Moyer
2004-06-30 15:11       ` Hans Deragon
2004-06-30 14:28     ` Mike Waychison [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-07-16 18:45 Hans Deragon
2004-07-16 19:01 ` Jeff Moyer
2005-03-02 21:03   ` Greg Bradner
2005-03-03  2:15     ` Ian Kent
2004-07-17  4:16 ` raven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40E2CE20.1050103@sun.com \
    --to=michael.waychison@sun.com \
    --cc=autofs@linux.kernel.org \
    --cc=dhowells@redhat.com \
    --cc=jmoyer@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.