Method of accessing files in electronic devices
AssigneeOpen Invention Network, LLC
InventorPirkka Puustinen
Life of this patent
Estimating the term…
Abstract
In a method for accessing files in an electronic device, a Random Access Memory (RAM) disk is set-up to store the file system root of the electronic device. At least one file system to be mounted is discovered in the electronic device. Mount points are established on the RAM disk for each file system. Drive identifiers are assigned for each file system. A file access request comprising a first file name path comprising a drive identifier is detected. The drive identifier is mapped to a mount point and a second file name path based on the mount point and the first file name path is formed. Thereupon, a file is accessed using the second file name path in the electronic device.
Claims16
A method for accessing files in an electronic device, the method comprising:
- setting up a Random Access Memory (RAM) disk, said Random Access Memory (RAM) disk comprising a file system root of said electronic device;
- discovering at least one file system to be mounted in said electronic device;
- establishing mount points on said Random Access Memory (RAM) disk for each said file system;
- assigning drive identifiers for each said file system;
- detecting a file access request for a specified file comprising a first file name path and a drive identifier;
- parsing the first file name path and determining whether the drive identifier is present;
- extracting the drive identifier;
- mapping said drive identifier to a mount point and to a list of logical drive identifiers;
- identifying each of the logical drive identifiers in the list to determine whether any of said logical drive identifiers provide a location of the specified file;
- forming a second file name path based on said mount point and said first file name path;
- accessing the specified file using said second file name path in said electronic device;
- determining the specified file is stored in one of the logical drive identifiers;
- replacing the drive identifier with the logical drive identifier that stored the specified file responsive to the specified file being identified in one of the logical drive identifiers;
- checking at least one logical drive for presence of at least a first predefined directory;
- forming at least one file search path comprising an entry for each logical drive on which said first predefined directory was present;
- and
- storing said at least one file search path to at least one environment variable comprising at least one of program directories on each logical drive and library directories on each logical drive.
An electronic device comprising a processor and a Random Access Memory (RAM), the electronic device further comprising:
- the processor being configured to control an operating system to set up a Random Access Memory (RAM) disk, said Random Access Memory (RAM) disk configured to store a file system root of said electronic device, and to access a specified file using a second file name path in said electronic device;
- and
- a file system handler entity configured to
- discover at least one file system to be mounted in said electronic device,
- establish mount points on said Random Access Memory (RAM) disk for each said file system,
- assign drive identifiers for each said file system,
- detect a file access request for the specified file comprising a first file name path and a drive identifier
- parse the first file name path and determine whether the drive identifier is present,
- extract the drive identifier,
- map said drive identifier to a mount point and to a list of logical drive identifiers,
- identify each of the logical drive identifiers in the list to determine whether any of said logical drive identifiers provide a location of the specified file,
- form a second file name path based on said mount point and said first file name path,
- determine the specified file is stored in one of the logical drive identifiers,
- replace the drive identifier with the logical drive identifier that stored the specified file responsive to the specified file being identified in one of the logical drive identifiers
- check at least one logical drive for presence of at least a first predefined directory;
- form at least one file search path comprising an entry for each logical drive on which said first predefined directory was present, and
- store said at least one file search path to at least one environment variable comprising at least one of program directories on each logical drive and library directories on each logical drive.
A non-transitory computer readable storage medium configured to store a computer program comprising code adapted to perform the following operations when executed by a processor:
- setting up a Random Access Memory (RAM) disk, said Random Access Memory (RAM) disk comprising the file system root of an electronic device;
- discovering at least one file system to be mounted in said electronic device;
- establishing mount points on said Random Access Memory (RAM) disk for each said file system;
- assigning drive identifiers for each said file system;
- detecting a file access request for a specified file comprising a first file name path and a drive identifier;
- parsing the first file name path and determining whether the drive identifier is present;
- extracting the drive identifier;
- mapping said drive identifier to a mount point and to a list of logical drive identifiers;
- identifying each of the logical drive identifiers in the list to determine whether any of said logical drive identifiers provide a location of the specified file;
- forming a second file name path based on said mount point and said first file name path
- accessing the specified file using said second file name path in said electronic device;
- determining the specified file is stored in one of the logical drive identifiers;
- replacing the drive identifier with the logical drive identifier that stored the specified file responsive to the specified file being identified in one of the logical drive identifiers;
- checking at least one logical drive for presence of at least a first predefined directory;
- forming at least one file search path comprising an entry for each logical drive on which said first predefined directory was present, and
- storing said at least one file search path to at least one environment variable comprising at least one of program directories on each logical drive and library directories on each logical drive.
Dependencies are inferred from the claim text.