HP 9000 200 Series Manual page 115

Using the basic 5.0/5.1 system
Table of Contents

Advertisement

DIRECTORY
DATA AREA
ENTRY
2
~
______ FI_LE __ A ______
~t
_____
------~~------_FI_LE--A------~3
FILE D
-
FILE D
j
I-
-
3
FILE C
I-
-
-
FILE C
-
-
-
4
-
-
-
-
5
-
-
I-
-
-
--
-----....---...
6
......
-
---
You now have a 2-sector gap in the data area but no gaps in the directory. If you create
another file, the system will fill entry 4 in the directory and will reserve space in the data
area past
FileC.
The two unused sectors will not be reclaimed unless you PURGE one of
the adjacent files,
FileD
or
FileC.
In this example, the 2 unused sectors were not a large problem. However, suppose that
FileB
was 800 sectors long, and
FileD
was 2 sectors. This scenario would result in 798
sectors on the disc being unusable!
The solution to this problem is to "REPACK" the disc using the "Mass Storage"
(MASS_STaR) utility, available on the BASIC Utilities disc. See the "Utilities" section
of Installing and Maintaining the BASIC System for instructions.
Purging HFS Files and Directories
The PURGE statement can be used for removing HFS files and directories.
Here are the restrictions on using PURGE to remove HFS files:
• In order to use PURGE, you must have write permission on the parent (superior)
directory.
• PURGE works only with closed files and directories. (You cannot PURGE a file
currently open with ASSIGN or a directory which is the current working directory-
specified in the most recent MASS STORAGE IS statement.)
• Directories must also be empty (not contain any files or directories).
Using Directories and Files
5-37

Advertisement

Table of Contents
loading

This manual is also suitable for:

9000 300 series

Table of Contents