view docs/nitros9guide/free.refentry @ 2772:0a3f4d8ea6d5

Found ENDC in wrong location in dwread.asm and dwwrite.asm. Corrected. Moved the native 6309 code in dwread.asm and dwwrite.asm into the H6309 labeled area and changed IFEQ H6309 to IFNE H6309. Also moved the 57600bps 6809 code to the default location. This change had been done in the old dwread.asm and dwwrite.asm files to make it easier to follow. Though these two files were overwritten from the HDBDOS project dwread.asm and dwwrite.asm files. So this conversion needed to be done again so it made the source easier to follow.
author drencor-xeen
date Wed, 23 Jan 2013 12:36:55 -0600
parents b00cf13c9f61
children
line wrap: on
line source

<refentry id="free">
<refnamediv>
<refname>FREE</refname>
<refpurpose>Display free space remaining on mass-storage device</refpurpose>
</refnamediv>

<refsynopsisdiv>
<cmdsynopsis>
<command>free</command>
<arg choice="plain">
  <replaceable>devname</replaceable>
</arg>
</cmdsynopsis>
</refsynopsisdiv>

<refsect1><title>Description</title>
<para>
This command displays the number of unused 256-byte sectors on a
device which are available for new files or for expanding existing
files. The device name given must be that of a mass-storage
multifile device. <command>Free</command> also displays the disk's name, creation
date, and cluster size.
</para>
<para>
Data sectors are allocated in groups called &quot;clusters&quot;. The number
of sectors per cluster depends on the storage capacity and physical
characteristics of the specific device. This means that small
amounts of free space may not be divisible into as many files. For
example, if a given disk system uses 8 sectors per cluster, and a
<command>free</command> command shows 32 sectors free, a maximum of four new files
could be created even if each has only one cluster.
</para>
<para>
For more information see: <xref linkend="sec3.10"/>
</para>
</refsect1>
<refsect1><title>Examples</title>
<screen>
OS9: free
BACKUP DATA DISK created on: 80/06/12
Capacity: 1,232 sectors (1-sector clusters)
1,020 free sectors, largest block 935 sectors

OS9: free /D1
NitrOS-9 Documentation Disk created on: 81/04/13
Capacity: 1,232 sectors (1-sector clusters)
568 Free sectors, largest block 440 sectors
</screen>
</refsect1>
</refentry>