System and method for determining a file system layout
AssigneeSun Microsystems, Inc.
InventorSusan Sohn
Life of this patent
Estimating the term…
Abstract
Embodiments of the present invention include a method for determining a file system layout on a disk. The method includes providing a default file system layout comprising a root partition, a swap partition and a plurality of unassigned partitions. The method further includes assigning a size for each of the partitions, sorting the partitions by size from largest to smallest and identifying available blocks on the disk for the unassigned partitions. The method also includes assigning locations on the disk for the partitions from the largest to the smallest wherein the partitions are filled in the available blocks from end to beginning.
Claims12
A method for determining a file system layout for installation of a file system on a disk comprising:
- a) providing a default file system layout comprising a root partition, a swap partition and a plurality of unassigned partitions;
- b) assigning a size for each of said partitions;
- c) sorting said partitions by said size assigned in said b) from largest to smallest;
- d) identifying available free spaces on said disk for said unassigned partitions;
- e) assigning locations on said disk for said partitions from said largest to said smallest wherein said partitions are filled in said available free spaces identified in said d) from end to beginning of said available free spaces;
- and
- f) identifying a preserved partition, wherein said preserved partition retains a location and a size, and wherein the assigned size for each of said partitions is capable of being modified in either one of byte size or cylinder size, and enabling converting between byte size and cylinder size by implementing appropriate rounding adjustments before proceeding to the installation of the file system on the disk.
In a computer system comprising a processor coupled to a bus and a memory coupled to said bus, a computer readable medium comprising instructions that when executed implement a method of determining a file system layout for installation of a file system on a disk said method comprising:
- a) providing a default file system layout comprising a root partition, a swap partition and a plurality of unassigned partitions;
- b) assigning a size for each of said partitions;
- c) sorting said partitions by said size assigned in said b) from largest to smallest;
- d) identifying available blocks of free space on said disk for said unassigned partitions;
- e) assigning locations on said disk for said partitions from said largest to said smallest wherein said partitions are filled in said available blocks identified in said d) from end to beginning of said available blocks;
- and
- f) identifying a preserved partition, wherein said preserved partition retains a location and a size, wherein the assigned size for each of said partitions is capable of being modified in either one of byte size or cylinder size, and enabling converting between byte size mode and cylinder size mode by implementing appropriate rounding adjustments before proceeding to the installation of the file system having the file system layout on the disk.
Dependencies are inferred from the claim text.