Age | Commit message (Collapse) | Author |
|
optimization. As observed by ali_farzanrad(at)riseup.net, support
for these was broken in the 5.5 release in early 2014 by the time_t
changes. No one noticed before now, so clearly this isn't something
we need to continue to support; rejecting in ffs_validate() is an
improvement.
Also: simplify DIRSIZ(), drop OLDDIRFMT and NEWDIRFMT, tests of
fs_maxsymlinklen against zero, #ifdef tests of FS_44INODEFMT, and
remove support for newfs -O0, last used in 2016.
ok miod@
|
|
getopt(3) returns '?' when it encounters a flag not present in the in
the optstring or if a flag is missing its option argument. We can
handle this case with the "default" failure case with no loss of
legibility. Hence, remove all the redundant "case '?':" lines.
Prompted by dlg@. With help from dlg@ and millert@.
Link: https://marc.info/?l=openbsd-tech&m=167011979726449&w=2
ok naddy@ millert@ dlg@
|
|
optionally use FFS2 (stu@ ran into a problem when running some tests on
an MFS filesystem that involved future dates).
Correct the manual which said that FFS2 is the default, which isn't the
case for mount_mfs.
lgtm miod@
|
|
that delivers too few inodes to hold a src tree. So adjust the
density for partitions on a 4k disk if fragsize and density are not
passed on the command line. This is kind of a hack, since we do not
have a way to signal the desired # of inodes from the install script.
ok kettenis@ krw@
|
|
|
|
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@
|
|
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.
|
|
partition, you obviously know what you are doing. Even (especially?)
if the new file system will be ffs or ext2fs.
ok deraadt@ as part of larger diff
|
|
out the "wait for mount" code into a function to see more easily
what is going on. ok visa@ tedu@
|
|
so we basically get this for free.
requested by espie
ok deraadt
|
|
is a more complicated problem than it appears.
ok deraadt@
|
|
created with far fewer inodes than DEV_BSIZE devices.
Scale the default 'density' value by (sector size)/DEV_BSIZE to
create the same number of inodes. Obviously a NO-OP on DEV_BSIZE
devices.
Thanks David!
ok deraadt@
|
|
discussed with naddy a bit, ok millert
|
|
lots of agreement.
|
|
ok deraadt, mmcc, tedu
|
|
mount(2).
ok deraadt@
|
|
resistant against memory correctup, if a corrupt filesystem is given to them.
ok krw
|
|
|
|
ok millert@
|
|
delete <sys/param.h> if now possible
ok guenther
|
|
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)
|
|
the errno of an intervening cleanup operation like close/unlink/etc.
Diff from Doug Hogan (doug (at) acyclic.org)
|
|
Don't put a format string that's only used once in a variable.
|
|
Careful second audit by millert
|
|
DL_[GET|SET]PSIZE(), DL_[GET|SET]POFFSET(), DL_[GET|SET]DSIZE() in
order to get|set correct value that includes the high bits of the
value.
|
|
command line sector size overrides disk label sector size. Add a comment
to make sure I don't do it again.
|
|
variable, drop pointless casts, vax-only sector variable to u_int64_t.
No intentional functional change.
|
|
test period; i think 3 years ago the last bugs fell out.
ok otto beck others
|
|
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@
|
|
|
|
|
|
ok deraadt
|
|
|
|
gets rid of #include <sys/dkio.h> in sys/ioctl.h and adds #include
<sys/dkio.h> to the places that actually want and use the disk
ioctls.
this became an issue when krw@'s X build failed when he was testing
a change to dkio.h.
tested by krw@
help from and ok miod@
|
|
benefit from planned changes to opendev(3).
ok krw@ marco@
|
|
identifier, allowing the disk to be identified without relying on the
device name.
ok deraadt@ krw@ beck@ marco@ todd@
|
|
512-byte blocks. Better than just blowing up. Tweak man page to document
this and clarify various things.
Inspired by problems noted during an install by Harald Dunkel.
Suggestions and man page corrections from otto@ and jmc@
ok beck@
|
|
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@
|
|
deraadt@
|
|
either from the disklabel or via -S, is not 512 bytes. Disklabel
partition sizes are sectors and not 512 byte blocks. One less 'block
is 512 bytes' assumption. 2^32 or so to go.
ok otto@ millert@
|
|
|
|
options left of the old tuning list, and it makes sense to have one list
now
- document -T. this was requested by todd (fries), and comes largely from
the description in netbsd's page of the same name
ok millert otto
|
|
here.
ok millert, otto
|
|
-1.
ok henning@ beck@ ray@
|
|
'please fix' jmc
|
|
|
|
|
|
a relative path: use realpath to only mount with absolute names.
ok deraadt thib
|
|
|
|
won't work yet. There remains sys/ufs work. ok deraadt@
|