Note in the verbose mfs df output, above, that the MFS block size (64k) is reported, as well as the disk type, which can be either data or parity. Output with the -koption is the same except that the Total, Used, and Avail data is displayed in kilobytes rather than 64K blocks. The fact that space consumed is the about the same on all disks is characteristic of the MFS, in which data is striped across all disks.

8.2.2mfs diskusg

The mfs diskusg utility returns information on disk usage of an MPEG file, given the size or duration, encoding rate, and encapsulation format that you supply. It has the following syntax:

mfs diskusg [-v] [-g]{size=size duration=seconds} rate=rate format=format

The parameters are described as follows:

-v

Specifies verbose mode, in which mfs diskusg displays information that would be returned by the mfs dump utility, if a file of the specified parameters were in the MFS.

-g

Returns an error status if there is no space for the specified content. This parameter is intended for use in shell scripts where you need to determine if there is enough space to store a particular content. If you specify both the -vand -gparameters at the same time, only the -goption will take effect.

size

Size of the MPEG file, in bytes.

duration

Duration of the MPEG file, in seconds.

rate

Encoding rate of the MPEG file, in bits per second.

format=format

Format of the encoded source file. One of:

MPEGTS

MPEG Transport Stream packet format. The packetization of this encapsulation consists of two 188-byte packets.

8-4Sun MediaCenter Server Administrator’s Guide • December 1997

Page 124
Image 124
Sun Microsystems 2.1 manual Mfs diskusg