BSD

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Interface to change NFS exports

    1 answers - 1834 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Message
    From: tech-kern-owner (AT) NetBSD (DOT) org [mailto:tech-kern-owner (AT) NetBSD (DOT) org]
    Behalf Frank van der Linden
    Sent: Sunday, September 11, 2005 5:47 AM
    To: jmmv84 (AT) gmail (DOT) com
    Cc: tech-kern (AT) netbsd (DOT) org
    Subject: Re: Interface to change NFS exports
    Julio M. Merino Vidal wrote:

    >Hi everybody,
    >
    >while adding NFS support to tmpfs, I found that the current way to
    >change NFS export information is how could I say it very ugly.
    >It seems to be a bandaid over what was used in the past to mount
    >FFS systems, which makes it confusing and difficult to extend.
    >(Don't we aim for clean design? ;-)

    Hi Julio,
    I agree with most of these changes, but I'd like to see an additional
    change: overloading the mount system call with export functionality is
    just wrong. There should be a seperate exportfs system call.
    - Frank
    I wholly concur with Julio's observations and with Frank's
    suggestion.
    The warts on mountd(8) alone is motivation enough.
    I also had to struggle with that one. It's nearly pointless to
    have kernel load modules for file systems when mountd(8) has to
    tweaked by hand. It wouldn't be possible to source file system
    modules from multiple sources because the end user would have
    to tweak mountd(8) source code. Most end users don't want to
    do that.
    Perhaps something like an fsctl() would be a good approach.
    Quotactl() is very close. Things like quotactl() could be
    folded into an fsctl(). Changing between r/w and r/o would
    be really easy. Freezing/unfreezing would too which is needed
    for LVM-based snapshots and in certain replication scenarios.
    Regards,
    -gww
  • No.1 | | 330 bytes | |

    Sun, Sep 11, 2005 at 09:14:06AM -0700, Gordon Waidhofer wrote:

    For some things I'm doing I overload quotactl() to do
    fsctl() operations.

    Probably better than overloading mount().
    If the interface is sane enough, maybe the system call can be renamed
    without affecting binary compatibility?

    David

Re: Interface to change NFS exports


max 4000 letters.
Your nickname that display:
In order to stop the spam: 8 + 7 =
QUESTION ON "BSD"

EMSDN.COM