summaryrefslogtreecommitdiffstats
path: root/sbin/newfs/newfs.c
Commit message (Collapse)AuthorAgeFilesLines
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Add again the ':' after the x option in th eargument list to getopt.n_hibma1999-06-191-2/+2
| | | | | | | It disappeared in rev. 1.23 newfs.c PR: 12292 Submitted by: Cy Schubert <cy@cschuber.net.gov.bc.ca>
* Fix bug in mount_mfs whereby mount_mfs would sometimes return beforedillon1999-02-091-1/+12
| | | | | | | the mount is completely active, causing the next few commands attempting to manipulate data on the mount to fail. mount_mfs's parent now tries to wait for the mount point st_dev to change before returning, indicating that the mount has gone active.
* Backed out previous commit. It broke fsck again. See rev.1.22 and thebde1998-10-171-3/+1
| | | | references there, and rev.1.38 of sys/ufs/ufs/ufs_disksubr.c.
* Don't rewrite the disk label. The type field is already set correctlyjkh1998-10-171-1/+3
| | | | | | | and we don't use the frags info, so why bother? More to the point, it seems to result in an EXDEV error when the label is written out and we lose because of it (don't know why though). This is a work-around and is marked as such.
* Correct source file corruption in last checkingrog1998-09-301-2/+1
| | | | Observed by: jkh
* Don't require an argument for -v flaggrog1998-09-291-6/+10
| | | | | | | Correct checks for null special file names Add Usage entry for -v flag Get terminology straight in man page Reviewed by: bde
* Reviewed by: bde,jkhgrog1998-09-111-5/+10
| | | | | | | | Add -v flag to newfs: -v Specify that the partition does not contain any slices, and that newfs should treat the whole partition as the file system. This option is useful for synthetic disks such as ccd and vinum.
* Backed out rev.1.9 (except don't bring back the vax code deletedbde1998-07-201-1/+20
| | | | | | | | | | in rev.1.9). fsck uses the per-partition ffs-related information in the label to find alternate superblocks when the main superblock is hosed. Rev.1.9 broke this by deleting the code that wrote the label. PR: 2537 xref: fsck/setup.c rev.1.8
* Make it compile again in the !__STDC__ case.charnier1998-07-161-1/+5
| | | | Found by: Bruce.
* Add prototypes. Check malloc() return value. Use err(). Remove unused #includescharnier1998-07-151-22/+30
| | | | Do not \n nor dot terminate syslog()/err() messages. -Wall.
* Fixed printf format errors.bde1998-06-281-1/+1
|
* Fixed some spelling errors.bde1998-01-161-2/+2
|
* 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
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Merge from Lite2:peter1997-03-111-14/+18
| | | | | | - use new getvfsbyname() and mount(2) interface (mount_mfs) - use new fs include files - updated inode / cg layout calculations (?)
* This update adds the support for != 512 byte sector SCSI devices tosos1996-12-011-2/+15
| | | | | | | | | | | | | | | | 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)
* 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
|
* 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-051-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | 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!)
* 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-121-1/+8
| | | | | 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-091-4/+6
| | | | | | 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.
* 1) If nrpos <= 1, don't output rpos table (and set fs_cpc to 0) - disablingdg1994-10-011-12/+22
| | | | | | | | | 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.
* BSD 4.4 Lite sbin Sourcesrgrimes1994-05-261-0/+678
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
OpenPOWER on IntegriCloud