Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Jan 1999 07:19:16 -0600
From:      Edwin Culp <eculp@webwizard.org.mx>
To:        Sheldon Hearn <axl@iafrica.com>
Cc:        current@FreeBSD.ORG
Subject:   Re: Enabling Softupdates with symlinks?
Message-ID:  <369605D3.C9523819@webwizard.org.mx>
References:  <17875.915798021@axl.noc.iafrica.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Sheldon Hearn wrote:

> Hi there,
>
> LINT says this:
>
> # Allow the FFS to use Softupdates technology.
> # To do this you need to copy the two files
> # /sys/ufs/ffs/softdep.h and /sys/ufs/ffs/ffs_softdep.c
> # from /usr/src/contrib/sys/softupdates
> # and understand the licensing restrictions.
> # You should also check on the FreeBSD website for newer versions.
> #options                SOFTUPDATES
>
> If I follow these isntructions and cp the files, I need to repeat the
> procedure any time the softupdates code is changed.
>
> Is it not feasible to use symbolic links to the files in the softupdates
> directory instead? i.e.:
>
> cd /sys/ufs/ffs
> ln -s /usr/src/contrib/sys/softupdates/softdep.h
> ln -s /usr/src/contrib/sys/softupdates/ffs_softdep.h
>
> This would require less thinking later on.
>
> Thanks,
> Sheldon.

I suggest you look at  /usr/src/sys/ufs/ffs/README.softupdates.  You could
almost have written it:-)

For legal reasons the two active files for using Soft Updates are in
/usr/src/contrib/sys/softupdates. To enable the feature in your kernel,
link the files into this directory as follows:

        cd /usr/src/sys/ufs/ffs
        ln -s ../../../contrib/sys/softupdates/*.[ch] .

and add option SOFTUPDATES to your kernel configuration.  You should also
read the copyrights in the sources and the README file in
/usr/src/contrib/sys/softupdates before enabling this feature to ensure
that you are acting legally. The stub file provided here is only enough
to allow the system to function without this option being turned on.

Once you're running a kernel with soft update support, you need to enable
it for whichever filesystems you wish to run with the soft update policy.
This is done with the -n option to tunefs(8) on the UNMOUNTED filesystems,
e.g. from single-user mode you'd do something like:

        tunefs -n enable /dev/rsd0s1d

To permanently enable soft updates on that filesystem (or at least until
a corresponding ``tunefs -n disable'' is done).

ed


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?369605D3.C9523819>