1997-03-23 20:08:22 +00:00
|
|
|
.\" Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
1998-06-30 06:18:44 +00:00
|
|
|
.\" must display the following acknowledgment:
|
1997-03-23 20:08:22 +00:00
|
|
|
.\" This product includes software developed by Todd C. Miller.
|
|
|
|
.\" 4. The name of the author may not be used to endorse or promote products
|
|
|
|
.\" derived from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
|
|
|
.\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
|
|
.\" AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
|
|
|
.\" THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
|
|
.\" EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
|
|
.\" PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
|
|
|
.\" OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
|
|
.\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
|
|
.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
|
|
.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" $OpenBSD: fsirand.8,v 1.6 1997/02/23 03:58:26 millert Exp $
|
1999-08-28 00:22:10 +00:00
|
|
|
.\" $FreeBSD$
|
1997-03-23 20:08:22 +00:00
|
|
|
.\"
|
|
|
|
.Dd January 25, 1997
|
|
|
|
.Dt FSIRAND 8
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm fsirand
|
|
|
|
.Nd randomize inode generation numbers
|
|
|
|
.Sh SYNOPSIS
|
2000-11-20 16:52:27 +00:00
|
|
|
.Nm
|
1997-03-23 20:08:22 +00:00
|
|
|
.Op Fl b
|
|
|
|
.Op Fl f
|
|
|
|
.Op Fl p
|
|
|
|
.Ar special
|
|
|
|
.Op Ar "special ..."
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
1998-06-30 06:18:44 +00:00
|
|
|
.Nm
|
2002-07-06 19:34:18 +00:00
|
|
|
utility installs random generation numbers on all the inodes for
|
2002-08-21 18:11:48 +00:00
|
|
|
each file system specified on the command line by
|
1997-03-23 20:08:22 +00:00
|
|
|
.Ar special .
|
2002-08-21 18:11:48 +00:00
|
|
|
This increases the security of NFS-exported file systems by making
|
1997-03-23 20:08:22 +00:00
|
|
|
it difficult to ``guess'' filehandles.
|
|
|
|
.Pp
|
2002-08-13 16:07:28 +00:00
|
|
|
.Em Note :
|
1997-03-23 20:08:22 +00:00
|
|
|
.Xr newfs 8
|
|
|
|
now does the equivalent of
|
|
|
|
.Nm
|
1997-03-27 00:27:50 +00:00
|
|
|
itself so it is no longer necessary to
|
1997-03-23 20:08:22 +00:00
|
|
|
run
|
|
|
|
.Nm
|
2004-07-02 21:45:06 +00:00
|
|
|
by hand on a new file system.
|
|
|
|
It is only used to
|
2002-08-21 18:11:48 +00:00
|
|
|
re-randomize or report on an existing file system.
|
1997-03-23 20:08:22 +00:00
|
|
|
.Pp
|
2002-07-06 19:34:18 +00:00
|
|
|
The
|
|
|
|
.Nm
|
2002-08-21 18:11:48 +00:00
|
|
|
utility should only be used on an unmounted file system that
|
1997-03-23 20:08:22 +00:00
|
|
|
has been checked with
|
|
|
|
.Xr fsck 8
|
2002-08-21 18:11:48 +00:00
|
|
|
or a file system that is mounted read-only.
|
2002-07-06 19:34:18 +00:00
|
|
|
The
|
|
|
|
.Nm
|
2002-08-21 18:11:48 +00:00
|
|
|
utility may be used on the root file system in single-user mode
|
1997-03-23 20:08:22 +00:00
|
|
|
but the system should be rebooted via ``reboot -n'' afterwards.
|
|
|
|
.Sh OPTIONS
|
|
|
|
The available options are as follows:
|
2010-10-21 12:27:13 +00:00
|
|
|
.Bl -tag -width indent
|
1997-03-23 20:08:22 +00:00
|
|
|
.It Fl b
|
1997-03-24 20:50:57 +00:00
|
|
|
Use the default block size (usually 512 bytes) instead
|
1997-03-23 20:08:22 +00:00
|
|
|
of the value gleaned from the disklabel.
|
|
|
|
.It Fl f
|
|
|
|
Force
|
|
|
|
.Nm
|
2002-08-21 18:11:48 +00:00
|
|
|
to run even if the file system on
|
1997-03-23 20:08:22 +00:00
|
|
|
.Ar special
|
|
|
|
is not marked as clean.
|
|
|
|
.It Fl p
|
|
|
|
Print the current generation numbers for all inodes instead of
|
|
|
|
generating new ones.
|
2000-12-18 15:16:24 +00:00
|
|
|
.El
|
1997-03-23 20:08:22 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr fs 5 ,
|
|
|
|
.Xr fsck 8 ,
|
1998-06-30 06:18:44 +00:00
|
|
|
.Xr newfs 8
|
1997-03-23 20:08:22 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
2002-07-06 19:34:18 +00:00
|
|
|
utility appeared in SunOS 3.x.
|
2000-11-10 17:46:15 +00:00
|
|
|
.Pp
|
1997-03-23 20:08:22 +00:00
|
|
|
This version of
|
|
|
|
.Nm
|
|
|
|
first appeared in
|
1997-03-24 20:50:57 +00:00
|
|
|
.Ox 2.1 .
|
2000-11-10 17:46:15 +00:00
|
|
|
.Pp
|
1997-03-24 20:50:57 +00:00
|
|
|
A
|
2000-01-23 01:30:05 +00:00
|
|
|
.Fx
|
1997-03-24 20:50:57 +00:00
|
|
|
version first appeared in
|
1997-03-27 18:47:05 +00:00
|
|
|
.Fx 2.2.5 .
|
1998-03-19 07:46:04 +00:00
|
|
|
.Sh AUTHORS
|
2014-06-20 09:40:43 +00:00
|
|
|
.An Todd C. Miller Aq Mt Todd.Miller@courtesan.com
|
2010-05-13 12:07:55 +00:00
|
|
|
.Sh CAVEATS
|
|
|
|
Since
|
|
|
|
.Nm
|
|
|
|
allocates enough memory to hold all the inodes in
|
|
|
|
a given cylinder group it may use a large amount
|
|
|
|
of memory for large disks with few cylinder groups.
|