diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-07-05 05:36:01 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-07-05 05:36:01 +0000 |
commit | 53e2c54ed25403939273b0b08c8322910913f18e (patch) | |
tree | 2a87547334463c36a89113d3668e47660d044af3 /sbin/dump/dump.h | |
parent | 8b5ae6cd40a8db5e9b98940439c80611746ea22f (diff) |
Fix some incorrect strncpy usage.
From NetBSD (luke@netbsd.org)
* verbosity additions displaying total & per-volume transfer times and rates
* Add the ability to dump specific files & directories of a single
filesystem. This uses fts(3) to access the directory structure (and
not the raw device), so the standard access permissions are adhered
to (unlike dumping an entire filesystem, which just requires read
access to the raw disk device).
* Support SIGINFO status reporting.
* Remove now unused variables that previously stored the (e)uid.
* Be more informative in a couple of error messages.
From NetBSD (mrg)
* fix NetBSD PR#3710, reported by Tatoku Ogaito <tacha@trap.fukui-med.ac.jp>.
don't pass pw->pw_name into functions; make a copy.
Diffstat (limited to 'sbin/dump/dump.h')
-rw-r--r-- | sbin/dump/dump.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sbin/dump/dump.h b/sbin/dump/dump.h index b29ddac83af..6bb8d593e07 100644 --- a/sbin/dump/dump.h +++ b/sbin/dump/dump.h @@ -1,5 +1,5 @@ -/* $OpenBSD: dump.h,v 1.4 1997/02/03 11:53:25 deraadt Exp $ */ -/* $NetBSD: dump.h,v 1.9 1995/03/18 14:54:57 cgd Exp $ */ +/* $OpenBSD: dump.h,v 1.5 1997/07/05 05:35:54 millert Exp $ */ +/* $NetBSD: dump.h,v 1.11 1997/06/05 11:13:20 lukem Exp $ */ /*- * Copyright (c) 1980, 1993 @@ -83,6 +83,7 @@ int notify; /* notify operator flag */ int blockswritten; /* number of blocks written on current tape */ int tapeno; /* current tape number */ time_t tstart_writing; /* when started writing the first tape block */ +long xferrate; /* averaged transfer rate of all volumes */ struct fs *sblock; /* the file system super block */ char sblock_buf[MAXBSIZE]; long dev_bsize; /* block size of underlying disk device */ @@ -95,19 +96,22 @@ int tp_bshift; /* log2(TP_BSIZE) */ /* operator interface functions */ void broadcast __P((char *message)); +time_t do_stats __P((void)); void lastdump __P((int arg)); /* int should be char */ void msg __P((const char *fmt, ...)); void msgtail __P((const char *fmt, ...)); int query __P((char *question)); void quit __P((const char *fmt, ...)); -void set_operators __P((void)); +void statussig __P((int)); void timeest __P((void)); time_t unctime __P((char *str)); -/* mapping rouintes */ +/* mapping routines */ struct dinode; long blockest __P((struct dinode *dp)); -int mapfiles __P((ino_t maxino, long *tapesize)); +void mapfileino __P((ino_t, long *, int *)); +int mapfiles __P((ino_t maxino, long *tapesize, char *disk, + char * const *dirv)); int mapdirs __P((ino_t maxino, long *tapesize)); /* file dumping routines */ |