summaryrefslogtreecommitdiffstats
path: root/sbin/newfs
Commit message (Collapse)AuthorAgeFilesLines
* Allow use of the name "swap" instead of an actual swap device.tegge1997-06-231-0/+31
| | | | | | | | This makes configuration of mfs /tmp on diskless clients more intuitive for people like me, that have used this feature on NetBSD and SunOS. Using the -T option and /dev/null, while already supported, is neither intuitive nor documented in the handbook. Obtained from: NetBSD
* Remove srandomdev fallbackache1997-06-141-2/+1
|
* Fix typo.eivind1997-05-041-1/+1
| | | | | PR: Closes PR docs/3488 Submitted by: k-horik@yk.rim.or.jp
* Fix the mount_mfs case from the last cleanup. The code was (ab)usingpeter1997-03-311-1/+17
| | | | | | | | | | | it's internal malloc() implementation to try and avoid overstepping it's resource limits (yuk!). Remain using libc's malloc(), but check the resource limits right before trying to malloc the ramdisk space and leave some spare memory for libc. In Andrey's words, the internal malloc was "true evil".. Among it's sins is it's ability to allocate less memory than asked for and still return success. stdio would just love that. :-) Reviewed by: ache
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Cleanup STANDALONE stuffache1997-03-241-28/+43
| | | | | | Not replace malloc() family for non-standalone variant Pay attention on malloc() family return code now Use srandomdev() now for RNG initialization
* Add generation number randomization. Newly created filesystems wil nowguido1997-03-232-6/+39
| | | | | | | | | automatically have random generation numbers. The kenel way of handling those also changed. Further it is advised to run fsirand on all your nfs exported filesystems. the code is mostly copied from OpenBSD, with the randomization chanegd to use /dev/urandom Reviewed by: Garrett Obtained from: OpenBSD
* Merge from Lite2:peter1997-03-114-50/+104
| | | | | | - use new getvfsbyname() and mount(2) interface (mount_mfs) - use new fs include files - updated inode / cg layout calculations (?)
* Replace "mfs" with "mount_mfs" in the NAME section.mpp1997-02-061-1/+1
|
* Sweep through the tree fixing mmap() usage:alex1997-01-161-1/+1
| | | | | | | | | | | | - Use MAP_FAILED instead of the constant -1 to indicate failure (required by POSIX). - Removed flag arguments of '0' (required by POSIX). - Fixed code which expected an error return of 0. - Fixed code which thought any address with the high bit set was an error. - Check for failure where no checks were present. Discussed with: bde
* Add example for mount_mfs(8).wosch1996-12-261-1/+8
|
* Update the newfs(8) man page to reflect currentmpp1996-12-141-4/+10
| | | | default values for some options better. Closes PR# 1374.
* This update adds the support for != 512 byte sector SCSI devices tosos1996-12-012-3/+18
| | | | | | | | | | | | | | | | the sd & od drivers. There is also slight changes to fdisk & newfs in order to comply with different sectorsizes. Currently sectors of size 512, 1024 & 2048 are supported, the only restriction beeing in fdisk, which hunts for the sectorsize of the device. This is based on patches to od.c and the other system files by John Gumb & Barry Scott, minor changes and the sd.c patches by me. There also exist some patches for the msdos filesys code, but I havn't been able to test those (yet). John Gumb (john@talisker.demon.co.uk) Barry Scott (barry@scottb.demon.co.uk)
* ts_sec -> tv_secnate1996-09-201-3/+3
| | | | ts_nsec -> tv_nsec
* man page link tmpfs.8 -> mfs.8 for former SunOS userswosch1996-02-021-1/+1
|
* A better algorithm to place the numbers on the lines.joerg1996-01-301-17/+17
| | | | Submitted by: satoshi
* Fix a bunch of spelling errors.mpp1996-01-291-1/+1
|
* Make the numbers for the "superblock backups" fit nicely on the screen,joerg1996-01-251-1/+35
| | | | | even for larger partitions. Until now, partition sizes > 500 MB messed up the screen.
* Change the reference to format(8) (which we don't have) to fdformat(1) andmpp1996-01-221-1/+2
| | | | scsiformat(8) (which we do have). Closes PR# 663.
* Add hooks into the mount_mfs code in newfs to do the FreeBSD-stylepeter1996-01-011-1/+15
| | | | | | | LKM loading if it was not configured into the system. Note that the LKM for MFS is not enabled by default, but I got it working on my machine.. I'll see what I did..
* Shorten a variable name.dg1995-09-171-4/+4
|
* Avoid the "calculated sectors per cylinder disagrees with disklabel"joerg1995-09-091-1/+9
| | | | | warning for the default case where the user hasn't specified either -t or -u on the command line. It's been confusing our users.
* Fixed error in maxcontig calculation that caused it to default to "1".dg1995-09-081-1/+1
|
* Remove trailing whitespace.rgrimes1995-05-301-4/+4
|
* Flush stdout when writing out each superblock backup.dg1995-05-021-0/+1
|
* Yank out the rewriting of disklabels. This code can and will get confusedphk1995-04-191-52/+0
| | | | | | in a couple of cases, and it doesn't do much anyway. It used to save only the newfs params (block/frag/cgroup.. and nothing more. Something that don't belong in a disklabel in the first place.
* Allow zero as value for certain arguments to indicate "take from disklabel".phk1995-02-051-2/+2
|
* Change the defaults for newfs to disregard the geometry in the disklabel.phk1995-02-052-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | We pretend we have one head with two megabyte worth of sectors per cylinder. The code try to access another head in what it belives to the same physical cylinder, because it belives that it would be faster than waiting for the next free sector under this head to come around. Most modern drives doesn't have a "classical" geometry, and thus we end up fooling ourselves doing the above optimization. With this change we will fill a cylinder sequentially if we can, and thus get much more mileage from the track-buffer/cache built into the drives. As a result a lot of seeks to the next or previous track should be avoided by this. (My disk is a lot less noisy actually...) You can still get the old behaviour, by specifying zero for the numbers. This will also solve the problem with newfs barfing at really big drives. Obtained from: adult advice from Kirk.
* Add support for filesystem-specific `-o' options, and re-implement thewollman1994-11-011-1/+1
| | | | | | | | | | | | | | | | most common cd9660 and nfs options like God intended them. (It is now possible to say mount -o ro,soft,bg,intr there:/foo/bar /foo/bar again.) This whole getmntopt() business is an incredible botch; it never should have been anything more than a wrapper around getsubopt(3). Because if the way the current hackaround is implemented, options which take arguments (like the old `rsize' and `wsize') are still unavailable, and must be accessed the new, broken way. (It's unimaginable how Berkeley managed to screw up one of the few things about NFS that Sun actually got right to begin with!)
* Restrict fs_maxfilesize to 2^40; this is part of a bug fix from Kirkdg1994-10-221-0/+2
| | | | | | | McKusick to work around problems in FFS related to the blkno of a 64bit offset not fitting into an int. Submitted by: Marshall Kirk McKusick
* Put back the `:' in the trinary ?: so this can actually compile again! :)jkh1994-10-131-1/+1
|
* Added '-F file' option of mount_mfs. This allows me to make floppy imagesphk1994-10-123-8/+59
| | | | | without waiting for my floppy-drive all the time :-) Might have other interesting uses too.
* Backed out part of the last change that prevents the rpos table fromdg1994-10-093-6/+8
| | | | | | being output if <= 1 rpos; there is a bug in the kernel which doesn't quite get along with this. Changed default #rpos to 1, and fixed up manual page. Converted nrpos to 1 if user specifies 0.
* Fixed manpage to conform to current reality.dg1994-10-011-1/+4
| | | | Submitted by: Rod Grimes, with additional sentence by me.
* 1) If nrpos <= 1, don't output rpos table (and set fs_cpc to 0) - disablingdg1994-10-012-13/+23
| | | | | | | | | the use of the rotational position table. 2) Allow specification of 0 rotational positions (disables function). 3) Make rotdelay=0 and nrpos=0 by default. The purpose of the above is to optimize for modern SCSI (and IDE) drives that do read-ahead/write-behind.
* Set fs_clean.dg1994-08-261-0/+1
|
* Convert to our man installation style. Also fixed long-standing bugwollman1994-08-051-1/+1
| | | | | in `fastboot'/`fasthalt' in which the interpreter would hang around after `reboot' or `halt' is run, causing an irritating ``Killed'' message.
* BSD 4.4 Lite sbin Sourcesrgrimes1994-05-264-0/+2201
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
OpenPOWER on IntegriCloud