History log of /openbsd-src/sbin/dump/tape.c (Results 1 – 25 of 49)
Revision Date Author Comments
# a7b9eedc 09-May-2024 florian <florian@openbsd.org>

ctime(3) and ctime_r(3) can fail when timestamps are way off.
Add missing error checks to all calls under sbin/

Input kettenis, millert
OK millert


# 5b133f3f 08-Mar-2023 guenther <guenther@openbsd.org>

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@


# 9be7043f 21-Jan-2021 mortimer <mortimer@openbsd.org>

Rearrange variables in dump / restore to handle -fno-common.

Largely following the commit by mckusick in FreeBSD.

ok naddy@


# a08df88e 01-Oct-2020 otto <otto@openbsd.org>

Only count the proper node types. Avoid out of-bound access for large
filesystems. From FreeBSD. ok millert@


# df69c215 28-Jun-2019 deraadt <deraadt@openbsd.org>

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if

When system calls indicate an error they return -1, not some arbitrary
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.

show more ...


# 753a1ada 08-Dec-2017 deraadt <deraadt@openbsd.org>

Convert snprintf+write into dprintf. It is simply easier to read, and
provides retry on short-write file descriptors.
ok florian, previous versions seen by millert


# 5ae94ef8 20-Aug-2015 deraadt <deraadt@openbsd.org>

<stdlib.h> is included, so do not need to cast result from
malloc, calloc, realloc*
ok krw millert


# 78eb0b7e 20-Jan-2015 deraadt <deraadt@openbsd.org>

Adjust <sys/param.h> comments regarding use of use of MAXFRAG, or
delete <sys/param.h> if now possible
ok guenther


# b9fc9a72 16-Jan-2015 deraadt <deraadt@openbsd.org>

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_N

Replace <sys/param.h> with <limits.h> and other less dirty headers where
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)

show more ...


# 0603cbef 13-Jun-2014 naddy <naddy@openbsd.org>

Type cleanup:
* Move all off_t variables that don't look like file sizes to int64_t.
* Switch blockswritten to int64_t, so it won't wrap at 2TB.
* Same for blocksthisvol (from deraadt@).
* Switch xfe

Type cleanup:
* Move all off_t variables that don't look like file sizes to int64_t.
* Switch blockswritten to int64_t, so it won't wrap at 2TB.
* Same for blocksthisvol (from deraadt@).
* Switch xferrate (from tedu@) and blocksperfile from long to uint64_t.
* Since blocksperfile can be set with -B, move numarg() from long
to long long and don't mark small integer constant arguments as long.

ok deraadt@, tedu@

show more ...


# 171a3685 24-May-2014 krw <krw@openbsd.org>

Nuke last of the illusionary 'dev_bsize' and 'dev_bshift' variables in
favour of DEV_BSIZE. No-op on 512-byte sector devices.


# e07939eb 12-Nov-2013 deraadt <deraadt@openbsd.org>

add a variety of missing prototypes


# fd08467e 02-Nov-2013 krw <krw@openbsd.org>

No need to cast constants or simple variables to (daddr_t). Use
(u_int64_t) instead of (daddr_t) when casting a variable in an
expression passed to DL_SETDSIZE().

Change a variable counting open fil

No need to cast constants or simple variables to (daddr_t). Use
(u_int64_t) instead of (daddr_t) when casting a variable in an
expression passed to DL_SETDSIZE().

Change a variable counting open files from daddr_t to int64_t.

ok deraadt@ with the tweak to fix that pesky expression.

show more ...


# 1abdbfde 11-Jun-2013 deraadt <deraadt@openbsd.org>

final removal of daddr64_t. daddr_t has been 64 bit for a long enough
test period; i think 3 years ago the last bugs fell out.
ok otto beck others


# 520eb379 25-Apr-2013 otto <otto@openbsd.org>

big int_t/time_t fixes; ok deraadt@ krw@


# d0f688a9 23-Apr-2013 deraadt <deraadt@openbsd.org>

handle large ino_t; ok tedu


# 91edd796 16-Apr-2013 deraadt <deraadt@openbsd.org>

do not need to cast type to same type


# 40d1eb0c 22-Aug-2012 halex <halex@openbsd.org>

- open a remote file/device with the same flags we use when opening a
local one
- replace a few magic numbers with the appropriate constants

ok millert@ (pre-lock)


# 043fbe51 27-Oct-2009 deraadt <deraadt@openbsd.org>

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(th

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

show more ...


# a59aca37 11-Jan-2008 otto <otto@openbsd.org>

compute transfer rate using 64-bit arithmetic, ok sthen@ millert@


# 0155e653 03-Jun-2007 millert <millert@openbsd.org>

Add ffs2 support to dump/restore. From FreeBSD with some NetBSD changes.
With help from otto@


# 412b5aee 04-Mar-2007 deraadt <deraadt@openbsd.org>

delete sunos junk; Jim Razmus


# 6d5c2f5f 02-Jun-2006 krw <krw@openbsd.org>

Fix comment to reflect updated st(4) verbiage.


# 2509e7ac 30-May-2006 krw <krw@openbsd.org>

Don't double-eject tapes. Once is enough. Closes PR#1282.

ok miod@ beck@, functionally equivalent diff ok deraadt@ a while ago


# e50609ce 13-Apr-2006 deraadt <deraadt@openbsd.org>

put "dump: filename " at the start of each ^T message...


12