wdisk

Section: WIN SYSTEM (1W)
Updated: 2002.5.31
Index Return to Main Contents
 

NAME

wdisk, wdisk60, wdiskd, wdisk60d - Write of win format data in disk file  

SYNOPSIS

wdisk [-Dns] shmkey outdir [ nfiles/freespace(-s) [ logfile ]]
wdiskd [-ns] shmkey outdir [ nfiles/freespace(-s) [ logfile ]]
wdisk60 [-Dns] shmkey outdir [ nfiles/freespace(-s) [ logfile ]]
wdisk60d [-ns] shmkey outdir [ nfiles/freespace(-s) [ logfile ]]

 

DESCRIPTION

Wdisk, wdisk60, wdiskd, and wdisk60d write win format data aligned in order of time written in shared memory segment of a key  shmkey in a directory of disk  outdir as the win format file. When '-' is specified as  shmkey, input data are read from the standard input instead of from the shared memory. Format of input data in that case is same as that of output file of wdiskts(1W). In wdisk, files are put together to files having a name of 'YYMMDDhh.mm' format for each 1 minute. In wdisk60, files are put together to files having a name of 'YYMMDDhh.mm' format for each 1 hour.  nfiles is the maximum number of files to be saved. Files of which latest number of files is  nfiles are always saved, and files older than those are deleted. However, when option -s is specified, it means space (MB) to be always secured is specified. When nfiles/freespace is not specified, or when '0' is specified, files are not automatically deleted.

Wdiskd and wdisk60d are initiated in daemon mode. It is the same operation when option -D is specified by wdisk and wdisk60.

When log file name  logfile is specified, operation log is set here. When it is not specified, log information is sent to the standard output (however, it is sent to syslogd(8) when operation is made in the daemon mode). Log file is opened/closed in each write.

When wdisk, wdisk60, wdiskd, and wdisk60d are initiated without argument, brief usage is displayed.  

FORMAT ON SHARED MEMORY

Refer to order(1W).  

OPTIONS

-D
Is initiated in daemon mode.
-s
Makes to specify files to be saved not with the number of files but with space to be always secured. It specifies to the third argument in MB.
-n
Does not create files of BUSY, COUNT, LATEST, and OLDEST except MAX among files showing operation status written in the next section. When this option is specified, programs for viewing these operation statuses such as events(1W), insert_raw(1W), and wtape(1W) cannot be run.
 

FILE

Wdisk, wdisk60, wdiskd, and wdisk60d create the following text files in an output directory  outdir, and show operation status depending on each content. However, when option -n is specified, only MAX is created.

BUSYFile name currently being written
COUNTThe current number of files
LATESTThe latest files of which write is completed
MAXThe number of files to be saved/space to be always secured (MB)
OLDEST The oldest file name

When file MAX is rewritten even in operation of wdisk, wdisk60, wdiskd, or wdisk60d, then "the number of files to be saved/space to be always secured (MB)" changes to new values.  

SOURCE

wdisk.c
 

SEE ALSO

winformat(1W), order(1W), wtape(1W)


 

Index

NAME
SYNOPSIS
DESCRIPTION
FORMAT ON SHARED MEMORY
OPTIONS
FILE
SOURCE
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 00:22:20 GMT, September 20, 2017