TDFU V2.4

DFU V2.4

<
Previous page... . | Contents

 $ DIR EXAMPLE    Directory MYDISK:[RUBBISH]    EXAMPLE.DIR;1    $ DFU  &DFU> DELETE/DIRECTORY EXAMPLE.DIR    ;%DFU-I-CLEANUP, Deleting MYDISK:[RUBBISH]EXAMPLE.DIR;1...  +%DFU-S-DELETED, File DBGINI.COM;3 deleted  )%DFU-S-DELETED, File ICON.COM;1 deleted  +%DFU-S-DELETED, File I_FOOL.COM;1 deleted  .%DFU-S-DELETED, File LOGICALS.COM;51 deleted  +%DFU-S-DELETED, File LOGIN.COM;79 deleted  +%DFU-S-DELETED, File LOGOUT.COM;4 deleted  2%DFU-S-DELETED, File NOTE_COMPRESS.COM;3 deleted  +%DFU-S-DELETED, File SHOWCL.COM;3 deleted  -%DFU-S-DELETED, File SYMBOLS.COM;89 deleted  -%DFU-S-DELETED, File TPUBUILD.COM;5 deleted  "%DFU-S-TOTAL, 11 file(s) deleted  ,%DFU-S-DELETED, File EXAMPLE.DIR;1 deleted  




/FILE=file-id

DSpecify a complete file-id (num,seq,rvn) of the file which must be deleted. FThis qualifier allows the deletion of lost files or files marked for ;delete. Example :

 $ DFU  DFU> VERIFY MYDISK:    -%DFU-S-CHKHOME, Home block info verified OK  '%DFU-I-IFSCAN, Scanning INDEXF.SYS...  J%DFU-E-INVBAKFID, file (86,17915,1) 0004CF04$BFS.;1 has invalid backlink  L%DFU-W-DELETED, file (537,2878,1) APPL_UTRYIT_BOOK.TMP;1 marked for delete   .   .   .    )DFU> DELETE MYDISK/FILE=(86,17915,1)  .%DFU-S-DELETED, File 0004CF04$BFS.;1 deleted    )DFU> DELETE MYDISK/FILE=(537,2878,1)  5%DFU-S-DELETED, File APPL_UTRYIT_BOOK.TMP;1 deleted    




/KEEP

>Preserve the directory tree; only delete the contents. /KEEP :is only valid with the /DIRECTORY qualifier. /KEEP works %for DELETE/DIR and DELETE/DIR/TREE. 

/NOLOG

CDo not log succesfull deletes to SYS$OUTPUT. /LOG is the default. 

/NOREMOVE

>Can only be used with /FILE. Default DELETE/FILE will try to Cremove the file from the parent directory. If the file's backlink Dno longer points to a valid directory this will generate an error. @The /NOREMOVE qualifier overrules this behaviour allowing such files to be deleted. 

/STATISTICS

GThis qualifier displays the performance statistics: CPU time, Elapsed Time, I/O and PageFaults. 

/TREE

BCan only be used with /DIRECTORY. The delete command will delete Hall subdirectories within the directory file specified. DFU will first Hsort out the subdirectory tree and than delete the files in the proper order. =Thus a complete directory tree is deleted with one command.  

 


8

Chapter 7
DIRECTORY



?This chapter describes the DIRECTORY command with the related parameters and qualifiers.  4

7.1 Introduction



GThe DIRECTORY command offers 6 major functions. 3 functions deal with ?all directories on a disk, the other 3 functions are used for 6manipulating individual directories. These functions &are activated by special qualifiers: 



EThe disks free space distribution as a bar graph. On the horizontal axis Hthe Logical Block Number (LBN) is shown, running from 0 to the maximum Eblock number. Each * represents a certain number of contiguous free blocks. 

>If you use the /USAGE qualifier a usage table will be added. IPer Identifier / UIC the blocks used/allocated , and the number of file Cheaders are shown. If Diskquota is enabled a third column will be included >which shows the blocks used/permitted allowing to QUOTA.SYS. 4Normally quota should satisfy the following rule :

 4 Quota used = blocks allocated + # of file headers  


 


(

REPORT



7Create a file and free space report of a disk device. 



Format



REPORT device[:]





PARAMETERS



device[:]

CDevice to be reported. You may also specify a logical devicename. 



QUALIFIERS



/APPEND=filename

:This qualifier redirects the output to be appended to an Calready existing file. If the output file does not exists it will :be created. You can use /APPEND or /OUTPUT but not both. 

/GRAPH

HThis qualifier generates a graph table which visualizes the free space 4distribution on the disk. /NOGRAPH is the default. 

/NOBITMAP

HThe /NOBITMAP qualifier suppresses the "Free space statistics" output. 

/NOFILE

@The /NOFILE qualifier suppressed the "File Statistics" output. 

/NOVOLUME

>The /NOVOLUME qualifier suppresses the "Volume info" output. 

/OUTPUT=filename

@This qualifier redirects the output to a file. The output will also go to SYS$OUTPUT. 

/STATISTICS

GThis qualifier displays the performance statistics: CPU time, Elapsed Time, I/O and PageFaults. $

/USAGE(=uic or identifier)

FThe /USAGE qualifier will generate a diskspace usage report based on AIdentifiers/UIC. If diskquota is enabled on the disk the blocks Aused/permitted allowing to QUOTA.SYS will also be shown. /USAGE Ais very usefull when diskquota is not enabled on the disk. When Ga uic or identifier is specified only the information for this uic or identifier will be displayed. 


 


5

Chapter 9
SEARCH



GThis chapter describes the SEARCH command with the related parameters and qualifiers.  4

9.1 Introduction



1The search function allows very quick disk-wide 5searches for specific files. You can use almost any 0possible file attribute as a search qualifier.  9

9.2 Syntax and Output



#The command syntax for SEARCH is:

 "DFU> SEARCH device/qualifiers  


=The output is displayed on your terminal. You can also sort &the output with the /SORT qualifier. +The output is shown in 2 or 3 columns eg:

 )DFU> SEARCH MYDISK/FILE=X.X/FRAGMENT   .   .  A$1$DUA102:[USER.COMMAND]X.X;1             1/3               1/1   .   .  


GThe first column shows the full file name . As of this version of DFU the 6device name is included in the file name. The second Fcolumns shows the file size as actual/allocated size. The 3rd column Dis optional and will only be shown when the /FRAGMENT qualifier is used. It =shows the number of fileheaders / number of file fragments.  =

9.3 Volume Set processing



;SEARCH checks if the device to-be-searched is member of a ?volume set. If so, the complete volume set will be processed, 7starting with Relative Volume Number 1 up to the last Cmember in set. You can override this behaviour with the /NOVOLSET qualifier.  9

9.4 Output formatting



2A new qualifier /FORMAT can be used with SEARCH. CThis allows the build up of a command procedure directly from the Coutput generated by the SEARCH command. /FORMAT has the following restrictions : 

    H
  1. /FORMAT is only valid with the /OUTPUT qualifier, and can not be used 2together with the /FULL or the /SORT qualifiers. A
  2. The format string used must contain the !AS directive (in uppercase). 8The file found will be substituted at the !AS location 


Example:

 IDFU> SEARCH/OUTP=DEL.COM/FORMAT="$DELETE/CONF !AS"/FILE=*.LOG mydisk  


 E

9.5 UIC and identifier processing



AThis version introduces an improved handling of UIC's. Previous versions Bof DFU only accepted a numeric UIC in the /OWNER qaulifier or an Hidentifier in the /IDENT qualifier. V2.4 now accepts all valid uic and Hidentifier formats (numeric and alphanumeric) in the /OWNER and /IDENT Iqualifiers. Technically there is no longer any difference between these Etwo qualifiers, but they will be left in for compatibility reasons.  


(

SEARCH



&Fast file search through INDEXF.SYS. 



Format



SEARCH device[:]





PARAMETERS



device[:]

CDevice to be searched. You may also specify a logical devicename. 



DESCRIPTION

FThe SEARCH command is used for quick disk-wide searches for specific files. @The qualifiers describe the file attributes used as the search 6criteria. You can combine almost all of the possible .qualifiers, unless otherwise specified. Eg.:

 DDFU> SEARCH DISK1/SIZE=MIN=10/OWN=[1,4]/CREATED=SINCE=YESTERDAY  


7is a valid command. Note that qualifiers will be used Hin a logical AND manner, that is, SEARCH will only display files which /obey to all qualifiers and options specified. 




QUALIFIERS



/ALLOCATED

IDefault, SEARCH will use the actual file size. The /ALLOCATED qualifier Eforces SEARCH to use the allocated filesize. This qualifier is only +meaningfull if you combine it with /SIZE. 

/APPEND=filename

:This qualifier redirects the output to be appended to an Calready existing file. If the output file does not exists it will :be created. You can use /APPEND or /OUTPUT but not both. !

/BACKUP=option(,option)

9The /BACKUP qualifier is used to search files depending 2on their backup date. The possible options are :  

7The NONE option gives files which don't have a backup 6date recorded.The other 2 options can be used to get 2files which have a backup date before or after a 3specific date. The BEFORE and SINCE option can be combined in one command. "

/BAKFID=backlink-file-id

6You can use this qualifier to look for a file with a 7specific backlink. Only the first part of the file id 7must be specified, that is, if the file id is (x,y,z) 7you must specify 'x' as the file id. You can use this 6qualifier to get files from a specific directory. If 9you use /BAKFID=0 you will get files not belonging to a $directory (often temporary files). *

/CHARACTERISTIC=(char1,char2...)

8This qualifier is used to get files with specific file 2characteristics.The characteristics can have the following values:  

4The several characteristics can be combined in one 8command.If you want a logical OR behaviour in stead of 4the default AND behaviour, you can use the special option MATCH=OR eg:

 *  SEARCH disk/CHAR=(NOMOVE,DIR,MATCH=OR)  


"

/CREATED=option(,option)

0The /CREATED qualifier is used to search files 5depending on their creation date. The options are :  

7These 2 options can be used to get files which have a 4creation date before or after a specific date. The 9BEFORE and SINCE option can be combined in one command. #

/EXCLUDE=(file1,file2...)

2This qualifier is used to exclude files from the 7search. You can use wildcard filenames ; you can also specifiy a list of files. "

/EXPIRED=option(,option)

0The /EXPIRED qualifier is used to search files 7depending on their expiration date. The options are :  

0The NONE option gives files which don't have a 5expiration date recorded.The other 2 options can be 7used to get files which have a expiration date before 7or after a specific date. The BEFORE and SINCE option !can be combined in one command. 

/FID=file-id

9The /FID qualifier is a special function of SEARCH. It 5directs SEARCH to go directly to the specified file 0without processing the rest of the Index file. 8Therefore, you cannot combine this qualifierwith other 5search qualifiers such as /FILE. Normally a file-id 7consists is in the form (x,y,z) where x is the number 8of the file header within INDEXF.SYS y is the sequence 7number, and z is the Relative Volume Number. You only 5need to specifiy the x value in the /FID qualifier.

/FILE=(file1,file2...)

3This qualifier is used to search for files with a 6specific file name.You can use wildcard file names; 'also you can specify a list of files. 

/FORMAT=format-string

CCreate an output file in a format described by the format string. EThe string must contain the !AS directive (this must be uppercase). ?At the !AS location the resultant filename will be filled in. $The /OUTPUT qualifier is required. -

/FRAGMENT(=(MINIMUM=nr,MAXIMUM=nr))

EThis qualifier displays the number of fragments and file headers of each 6file found. You can further limit the files found by 6using the MINIMUM and MAXIMUM= options. For example:  

0


Next page...  | ,Contents