Age | Commit message (Collapse) | Author |
|
ok dcoppa@ otto@
also reviewed by Vadim Zhukov
|
|
Useful for mount_mfs, now you can just say:
# mount_mfs -s 50m swap /tmp
And it will do what you want, taking into account sector size.
Old behaviour of -s (specifying count of sectors) is, of course,
preserved.
All the work was done by Vadim Zhukov (persgray(at)gmail com).
OK myself, otto@, thib@
|
|
we're about to create and warn the user if this is larger than either
physmem or MAXDSIZ; ok deraadt@ krw@ thib@
|
|
|
|
512) bytes; ffs is inextricably tied to using b_blkno and disklabel
always uses sectorsize units.
Thus use DEV_BSIZE units for all fields describing ffs filesystems
and convert to/from sectors where required. This enables the creation
and use of ffs filesystems on non-512 byte sectorsize devices.
This diff allows i386 and sgi (the two test platforms) to find
disklabels that are not on a sectorsize boundary. Same change to
further archs coming.
This is a no-op on 512-byte sectorsize devices.
This work triggered by jsing@'s need to create ffs filesystems on
sgi cdroms so we can create cdrom install media for sgi.
sgi testing by jsing@
ok jsing@ pedro@ "looks sane" beck@ weingart@
|
|
|
|
This was not happening since acg.cg_initediblk gets cleared for the
ffs1 case. OK otto@
|
|
won't work yet. There remains sys/ufs work. ok deraadt@
|
|
|
|
|
|
|
|
|
|
free room in struct partition by packing fragment size and
fragments/block more tighlty and use the resulting space to make
offset and size 48 bits. For the disk part we use spare fields in
struct disklabel. Kernel converts in-mem copy of the on-disk
label if needed, disklabel(8) writes new version.
We are careful to only change fields not used by bootloaders.
Conception of basic scheme by deraadt.
ok deraadt@ krw@
|
|
recommit the -c changes. For now, we warn only if we cannot honour -c.
ok millert@ deraadt@
|
|
changes obviously *MUST* be checked against whatever weird things the
floppies do to fit
|
|
variable name; correct the loop packing more inodes into the cg:
in some cases it could put more fragments into the cg than requested;
give an error if the -c option cannot be honoured. ok millert@ pedro@
|
|
Prevents a core dump found by djm@ when doing mount_mfs -s 80
(yeah, that's a tiny file system); ok millert@ pedro@
|
|
This was part of the ffs2 changes but was not committed earlier in
order to make the userland and kernel changes independent.
NOTE: the change to newfs require an updated fs.h; building an
updated newfs with the old fs.h may result in a broken filesystem.
OK otto@
|
|
architectures, CGSIZE() was returning something sligthly over one block.
The 'new' fsck would round this value up to a fragment boundary, and end
up trying to access memory beyond allocated space. From mickey@, okay
pedro@, millert@ and otto@.
|
|
produces a bad cg when -c is used. ok pedro@ millert@
|
|
|
|
of a constant-sized track is obsolete in today's world of variable
blocks per track disks so the cylinder group packing algorithm has
been updated. Based on the ufs2 changes in FreeBSD by Kirk McKusick.
From pedro@ with changes by me as well as a few from NetBSD.
OK pedro@ beck@ thib@ and tested by more...
|
|
OK deraadt @, OK in principle tedu@
|
|
the default, quiet gcc. OK deraadt@
|
|
need to reserve space for them in the filesystem itself.
OK deraadt@ pedro@
|
|
accessing FFS1 fields, okay art@, quite some testing by ckuethe@, simon@
and thib@, thanks.
|
|
Various testing for a while, okay krw@
|
|
No functional change
|
|
larger than 1TB. ok deraadt@
|
|
|
|
|
|
of inodes per cylinder group for large block or fragment sizes.
This allows for creation of filesystems with any legal block/fragment
size combination.
ok tedu@.
|
|
|
|
MAXBSIZE. ok millert@
|
|
ok millert@
|
|
- Make the root of an mfs file system inherit the permission and
owner/group of the mountpoint. Work by david@.
- Add the ability to populate an mfs file system with the contents of a
directory or a file system immediately after creation, controlled
by the new -P mount option.
Discussed with and tested by many, ok djm@ david@
|
|
&acg.cg_firstfield. Fixes a bogus "panic: cylinder group too big" I
see sometimes when using mmap malloc. OK tholo@
|
|
|
|
|
|
clustering; tedu@ ok
|
|
fsck/mount unhappiness. hint from freebsd-arch ml. ok deraadt@
|
|
|
|
mostly from tom cosgrove.
|
|
way for some future work. no function changes yet.
help testing otto@ and markus@
|
|
as many as fit with the other parameters given.
change default frag size to 2048, bumping block size to 16k.
from freebsd.
ok deraadt@ and co.
|
|
|
|
|
|
|
|
rescinded 22 July 1999. Proofed by myself and Theo.
|
|
|