Commit Graph

9 Commits

Author SHA1 Message Date
perseant 88d28e9b98 Fix frag -> fsize typo 2000-01-19 21:27:08 +00:00
perseant 43a7fde6d9 newfs_lfs now recognizes a zero p_sgs field to mean "use the default segment
size" (for consistency with bsize/fsize, and since segment size == block
size is never a valid combination).

Updated the man page to include explicit reasonable values for fsize, bsize,
and sgs, at suggestion from Hubert Feyrer.
2000-01-18 21:57:59 +00:00
perseant f1dfdc6927 disklabel now understands the p_sgs partition field (shift to compute
segment size from block size).

newfs_lfs now reads the disklabel to find segment, block, and fragment
sizes.  Because reading this info from the wrong fs type could result in
very poor fs layout (e.g. ffs has "16" where the segshift would go,
resulting in 512-*megabyte* segments for 8K blocks), newfs_lfs refuses
to create a filesystem on a partition not labeled "4.4LFS".

Man pages for newfs_lfs updated to reflect this change.
2000-01-18 00:02:28 +00:00
perseant f52d155148 Make newfs_lfs try increasingly smaller segment sizes down to 2*block size,
if the partition is so small that not enough segments can be created to
place the second superblock.  Addresses PR#7623.
1999-11-05 18:59:12 +00:00
perseant eda6e4cca4 Address PR bin/7623: if the filesystem is so small (or segment size so large)
that not enough segments are available for the second superblock, or to have
MIN_FREE_SEGS free for work room for the cleaner, newfs_lfs will now exit
with an error.
1999-07-22 20:14:29 +00:00
perseant 9e91c8ebd7 Use ufs_daddr_t instead of u_long, so non-32-bit architectures can clean seg 0 1999-06-24 16:45:14 +00:00
perseant f9daa9044a Correct data checksum to take ifile indirect block into account, if it exists 1999-03-30 19:04:50 +00:00
perseant 14c9d1eedb Fixes for newfs_lfs on partitions that would require writing an indirect
block on the Ifile (>~4Gb with standard block/segment size).
1999-03-19 17:28:19 +00:00
perseant 0a849c918b Change name of newlfs to newfs_lfs. 1999-03-18 17:18:04 +00:00