SYSTEM AND METHOD FOR UTILIZING GENERATIONAL FILE NAMES FOR DIAGNOSTIC DATA FILES
First Claim
1. A method for utilizing file names, the method comprising:
- initializing a generation number (Z) such that a number of files in a file system does not exceed a predetermined maximum number of files permitted in the file system and such that each file in the file system stays for a longest life span before being overwritten, wherein said initializing is performed at startup of a runtime environment that manipulates the file system, wherein a file counter base (X) defines the predetermined maximum number of files permitted in the file system, wherein each file in the file system is uniquely identified by a respective file name (N) that comprises a respective file counter (F);
subsequent to said initializing, setting a file counter (F) to the generation number (Z);
subsequent to said setting, storing a file in the file system by a file name (N) comprising the file counter (F); and
subsequent to said storing, recalculating a new value of the file counter (F) from a current value of the file counter (F).
1 Assignment
0 Petitions
Accused Products
Abstract
A system and associated method for utilizing file names for diagnostic data files generated by a runtime environment. The method employs a file counter base that defines a predefined maximum number of files permitted in a file system, a generation number that indicates an instance of the runtime environment, and a file counter that comprises a file name. The file counter circulates by a cycle equal to the file counter base such that the file system uses only a limited disk space. The method determines the generation number per instance of the runtime environment by examining file counters of existing files in the file system. The generation number initializes the file counter for creating file names in the instance of the runtime environment. The method guarantees a longest life span of a diagnostic data file in a file system that has a limited number of files.
-
Citations
20 Claims
-
1. A method for utilizing file names, the method comprising:
-
initializing a generation number (Z) such that a number of files in a file system does not exceed a predetermined maximum number of files permitted in the file system and such that each file in the file system stays for a longest life span before being overwritten, wherein said initializing is performed at startup of a runtime environment that manipulates the file system, wherein a file counter base (X) defines the predetermined maximum number of files permitted in the file system, wherein each file in the file system is uniquely identified by a respective file name (N) that comprises a respective file counter (F); subsequent to said initializing, setting a file counter (F) to the generation number (Z); subsequent to said setting, storing a file in the file system by a file name (N) comprising the file counter (F); and subsequent to said storing, recalculating a new value of the file counter (F) from a current value of the file counter (F). - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A computer program product, comprising a computer usable storage medium having a computer readable program code embodied therein, said computer readable program code containing instructions that when executed by a processor of a computer system implement a method for utilizing file names, the method comprising:
-
initializing a generation number (Z) such that a number of files in a file system does not exceed a predetermined maximum number of files permitted in the file system and such that each file in the file system stays for a longest life span before being overwritten, wherein said initializing is performed at startup of a runtime environment that manipulates the file system, wherein a file counter base (X) defines the predetermined maximum number of files permitted in the file system, wherein each file in the file system is uniquely identified by a respective file name (N) that comprises a respective file counter (F); subsequent to said initializing, setting a file counter (F) to the generation number (Z); subsequent to said setting, storing a file in the file system by a file name (N) comprising the file counter (F); and subsequent to said storing, recalculating a new value of the file counter (F) from a current value of the file counter (F). - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A computer system comprising a processor and a computer readable memory unit coupled to the processor, said memory unit containing instructions that when executed by the processor implement a method for utilizing file names, the method comprising:
-
initializing a generation number (Z) such that a number of files in a file system does not exceed a predetermined maximum number of files permitted in the file system and such that each file in the file system stays for a longest life span before being overwritten, wherein said initializing is performed at startup of a runtime environment that manipulates the file system, wherein a file counter base (X) defines the predetermined maximum number of files permitted in the file system, wherein each file in the file system is uniquely identified by a respective file name (N) that comprises a respective file counter (F); subsequent to said initializing, setting a file counter (F) to the generation number (Z); subsequent to said setting, storing a file in the file system by a file name (N) comprising the file counter (F); and subsequent to said storing, recalculating a new value of the file counter (F) from a current value of the file counter (F). - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification