summaryrefslogtreecommitdiffstats
path: root/sbin/newfs
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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..
OpenPOWER on IntegriCloud