summaryrefslogtreecommitdiffstats
path: root/sbin/newfs
Commit message (Collapse)AuthorAgeFilesLines
* The common wisdom is to use the largest number of cylinders per group.obrien2001-03-271-3/+4
| | | | | | So bump the default from `16' to `22', which is the largest value allowed with the current default block size. This change increases the the group size from 32MB/g to 44MB/g on a 4GB SCSI disk.
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for sbin/ to 8.ru2001-03-201-1/+0
|
* Make mount_mfs annoy users for 15 seconds and point them at mdconfig(8).phk2001-01-302-0/+12
|
* mdoc(7) police: fixed broken references.ru2001-01-161-1/+1
|
* The ffs superblock includes a 128-byte region for use by temporaryiedowse2001-01-151-0/+5
| | | | | | | | | | | | | | | | | | | | in-core pointers to summary information. An array in this region (fs_csp) could overflow on filesystems with a very large number of cylinder groups (~16000 on i386 with 8k blocks). When this happens, other fields in the superblock get corrupted, and fsck refuses to check the filesystem. Solve this problem by replacing the fs_csp array in 'struct fs' with a single pointer, and add padding to keep the length of the 128-byte region fixed. Update the kernel and userland utilities to use just this single pointer. With this change, the kernel no longer makes use of the superblock fields 'fs_csshift' and 'fs_csmask'. Add a comment to newfs/mkfs.c to indicate that these fields must be calculated for compatibility with older kernels. Reviewed by: mckusick
* Replace reference to replacing mkfs(8) with a paragraph actuallyeivind2001-01-151-3/+1
| | | | describing what newfs *does*.
* Prepare for mdoc(7)NG.ru2000-12-271-10/+20
|
* o Add an example for a large file system.imp2000-12-191-7/+9
| | | | | | | o Remove bug about boot blocks hating non-8k file systems. This hasn't been the case for a long time. Not Objected to by: hackers, doc
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-3/+3
|
* Avoid use of direct troff requests in mdoc(7) manual pages.ru2000-11-101-2/+0
|
* Cast block number to off_t to avoid possible overflow bugs.jwd2000-10-241-1/+1
| | | | Pointed out by: Bruce Evans <bde@zeta.org.au>
* The write combining code in revision 1.30 needs a few additionaljwd2000-10-241-12/+25
| | | | | | | | | | touch ups. The cache needs to be flushed against block reads, and a final flush at process termination to force the backup superblocks to disk. I believe this will allow 'make release' to complete. Submitted by: Tor.Egge@fast.no
* Implement simple write combining for newfs - this is particularly usefulpeter2000-10-171-0/+37
| | | | | | for large scsi disks with WCE = 0. This yields around a 7 times speedup on elapsed newfs time on test disks here. 64k clusters seems to be the sweet spot for scsi disks using our present drivers.
* Turn dkcksum() into an __inline function.phk2000-09-161-2/+3
| | | | Change its type to u_int_16_t.
* Don't try to do anything with the /dev/rXXX device.msmith2000-05-311-4/+2
|
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-011-1/+2
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Add Xref to camcontrol(8) (replacing previously-removed scsiformat(8)).kris2000-01-301-0/+1
| | | | Submitted by: joerg
* Fix various man pages to stop abusing the .Bx macro to generatempp2000-01-231-1/+1
| | | | | the strings "FreeBSD" and "NetBSD". Use the .Fx or .Nx macro instead.
* Remove dead xref to scsiformat(8)kris1999-11-151-1/+0
| | | | Obtained from: OpenBSD (kind of)
* $Id$ -> $FreeBSD$peter1999-08-283-3/+3
|
* Don't print a "," after the last superblock.billf1999-08-211-3/+4
| | | | Submitted by: adrian
* 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>
* Describe the default values for useful options.grog1999-03-101-14/+45
| | | | Clarify which options are no longer useful.
* Fix bug in mount_mfs whereby mount_mfs would sometimes return beforedillon1999-02-092-5/+39
| | | | | | | 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.
* Straightened the terminology straightening in 1.17-1.18. Fixed hardbde1998-11-291-7/+8
| | | | line breaks in rev.1.16-1.18.
* Refer to "da" rather than "sd" device.rnordier1998-11-281-2/+2
|
* 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-292-11/+18
| | | | | | | 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 (again)grog1998-09-111-2/+2
| | | | Correct terminology (partitions are in slices, not the other way around)
* Reviewed by: bde,jkhgrog1998-09-112-7/+22
| | | | | | | | 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.
* Use explicitly sized types when formatting cylinder groups.dfr1998-08-271-7/+7
|
* Forgot to remove a ';' in my previous commit.charnier1998-08-121-2/+2
|
* 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-153-94/+141
| | | | Do not \n nor dot terminate syslog()/err() messages. -Wall.
* Fixed printf format errors.bde1998-06-282-17/+19
|
* Fixed overflow in the calculation of the number of inodes per groupbde1998-05-311-1/+1
| | | | | | for filesystems with almost the maximum number of sectors. The maxiumum is 2^31, but overflow is common for that size, and overflow normally occurred here at size (2^31 - 4096).
* Add warning about root-fs blocksize expectations.phk1998-04-261-0/+4
| | | | | | PR: 4485 Reviewed by: phk Submitted by: Kees Jan Koster <kjk1@ukc.ac.uk>
* Removed definition of _NEW_VFSCONF. The new vfsconf interface is nowbde1998-01-201-1/+0
| | | | the default.
* Don't create superblocks with size larger than SBSIZE (8192). Thebde1998-01-191-0/+4
| | | | | | | size was rounded up to a multiple of the fragment size, but this gave invalid file systems when the fragment size was > SBSIZE (fsck aborts early on them). Now a fragment size of 32768 seems to work (too-simple tests with fsck and iozone worked).
* Fixed some spelling errors.bde1998-01-161-2/+2
|
* Fix syntax error for the mount_mfs example.obrien1997-11-241-2/+2
| | | | Also update to a more realistic example.
* Some tweaks to get this to cope with ELF where the address space startspeter1997-09-131-8/+18
| | | | | | | | | | higher up in memory (0x0800000 upwards) rather than near zero (0x1000 for our qmagic a.out format). The method that mount_mfs uses to allocate the memory within data size rlimits for the ram disk is entirely too much of a kludge for my liking. I mean, if it's run as root, surely it makes sense to just raise the resource limits to infinity or something, and if it's a non-root user mount (do these work? with mfs?) it could just fail if it's outside limits.
* Removed "hack to prevent overflow of a 32bit block number". Lite2 has abde1997-07-131-3/+1
| | | | | | | better hack in ffs_vfsops.c. The hack here restricted the maximum file size to 2^39 bytes (512GB). fs_bsize * 2^31 - 1 (16TB for the default blocksize of 8K) would have been better. There is no good way to remove this limit on old BSD4.4 file systems.
* 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
OpenPOWER on IntegriCloud