This application is related to application Ser. No. 11/356,940, filed Feb. 17, 2006, entitled “MECHANISM TO EXCHANGE PRIMARY DATA STREAM OF A FILE.”
Computer users continue to store and share more files in richer ways as the internet, communications and broadband technologies improve and expand their reach. While there are many benefits that come with this explosive growth of electronic information, users are becoming more challenged to find and reuse files that they once created or used. The following scenario will be used as an example to illustrate this challenge.
A user, named Fred, receives a file attached to an email from his colleague, Sam. The attachment is a written document describing the goals of a project Fred and Sam are leading. Fred makes a few changes to the document and saves the file on his local computer. He also starts to draft a new document that lays out the milestones for the project. Fred does not want to rewrite the project objectives in his milestones document so he embeds a link in the milestones document to the objectives document so that anyone who is reading his milestones document can link directly to the objectives document. Fred saves both the milestones document and the objectives document on a share that both Fred and Sam have permission to access. Fred changes the name on the objectives document to make it clear that the document includes his modifications and emails Sam the link to the milestones document stored on the common share.
Sam opens the milestones document and then clicks on the objectives document link that Fred has embedded so that Sam can see the changes Fred has made to the objectives. Sam is presented with a message on the display of his computer explaining that the objectives document can not be found. Sam does not know why the file can not be found and he does not know how to find it. So he needs to wait for Fred to correct the link or tell him where the file is stored and the name under which it is stored.
This scenario is further illustrated in
Most files today are created with a namespace name that includes the path where the file is stored and the user-given name. In the scenario described above the namespace name for file 10 is C:\Documents\Objectibes where C:\Documents is the path and Objectives is the name that Sam created for the file. As illustrated, however, the path and name of a file may change over the lifetime of the file making it difficult to ensure that these changes are tracked and updated so that the file can be opened despite any changes in its namespace name.
Some file systems are capable of tracking changes. For example, the Windows NTFS file system includes a Change Journal such as an Update Sequence Number (USN) Journal that tracks file namespace changes. However, because not all files are meant to be shared across users and applications the tracking information from the Change Journal is only available to certain applications and users with the highest security permissions. For example, in the scenario discussed above, Sam should not have access to the objectives document file 12 stored on Fred's computer unless Fred authorized Sam to have access. Nor should Sam be able to obtain information about what files are stored on Fred's computer without permission. Accordingly, except for administrators with the highest security permissions computer applications are not developed to utilize the tracking features of the Change Journal.
There are also some file systems that will create a unique file or object ID associated with certain files when they are created that are persistent and do not change even when the namespace name is changed. While having a unique and persistent identifier associated with a file may simplify the tracking of a file that has changed path or name over the course of its lifetime, there is currently no mechanism for users without the highest of security permissions or applications that are designed to open files using the namespace name to open a file when the namespace name has been changed although doing so would not have been a breach of any security conditions.
It should be understood that many other scenarios are possible in which the namespace name changes preventing the opening of a desired file.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the illustrative embodiment, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
Program instructions and methods are provided to bypass the namespace name hierarchy in order to access a file. In one illustrative example, a unique number generator generates a unique identifier and the file system accesses a file based on the unique identifier. The unique identifier is associated, by a file system, with the file and does not change even if the namespace name for the file changes. The file system also uses a specified search space which adheres to all applicable security permissions in combination with the unique identifier to form a path designation that is used to access the file. If the file is moved to a location outside the specified search space the file will not be opened. If the file is moved to a shared location in which permission has been granted to access the file, the file in the shared location can be accessed using the path designation.
According to one illustrative method for bypassing the namespace hierarchy to access a file, an application passes the unique identifier and the specified search space to a program which may include a file system application programming interface. The program which may also include a file system, combines the unique identifier and specified search space into a path designation and uses the path designation to access the file. The search space in this illustrative example is defined by a tree rooted in a store corresponding to the file's location. If the file's namespace name change, for example, by moving the file to a second location, the file is still accessed as long as the second location remains within the specified search space.
In another illustrative example, program instructions such as an application are described. The application includes instructions for obtaining the unique identifier associated with the file, for example, by requesting the unique identifier from a file system application programming interface. The application also may include instructions for obtaining the specified search space based on the location where the file is stored. A further set of instructions are provided to combine the unique identifier with the specified search space to form a path designation that may be used to access a file independent from its namespace name so long as the file location remains within the specified search space.
a shows a flow chart for an exemplary method of creating a file associated with a unique identifier.
b shows a flow chart for a method of accessing a file after the file's namespace name has changed.
An illustrative embodiment of the present invention is now described with reference to the drawings, wherein like reference numerals are used to refer to like elements throughout. In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the claimed subject matter. It may be evident, however, that the claimed subject matter may be practiced without these specific details. In other instances, well-known structures and devices are shown in block diagram form in order to facilitate describing the claimed subject matter.
As mentioned in the Background, there is currently no mechanism for opening a file that has undergone a namespace name change where the user is not granted broad security permissions or where the application is not designed for use by administrators with broad security permissions. The illustrative embodiment provides a mechanism to bypass the namespace hierarchy and to open a file that can be found within a permissible search space.
According to one illustrative embodiment, the File System API 102 combines a specified search space and the unique identifier to generate a path designation that the File System Kernel 106 can use to access the file where accessing the file includes, but is not limited to any one or more of opening, viewing, reading, writing, moving, copying, rendering, and the like. The specified search space, as is explained in more detail below, meets requirements for security permissions and the unique identifier persists with the file even if the file path or name has changed.
a shows a flow chart for a method of creating a file in accordance with the illustrative embodiment. A user creates a file by saving the file through an interface of the application. The application receives an input from the user to create or save a file and calls the File System API at step 122. The unique number generator generates a unique identifier to be associated with the file at step 124. The File System Kernel creates or saves the file in association with the unique identifier at step 126. At step 128, the application may request the unique identifier associated with the file that was created or saved. Many programming techniques could be used to request or obtain the unique identifier from the file system and are known to those skilled in the art. For example, an application running on theWindows File System may call a public API such as GetIdForPath.
After the file has been created as shown in
The following description refers to an exemplary implementation of an application developed for the Windows File System (WinFS) to further illustrate steps 130, 132 and 134. The format of the file path is defined as follows:
\\machinename\WinFSShare\˜˜$WinFS$_ItemId@{<ItemIDGuid>}
where ItemId is the unique identifier. The Item Domain in WinFS, or the specified search space, is defined by the parent of the ˜˜$WinFS$_ItemId@{ . . . } path. For example, consider the following ItemId path:
\\winfstst\Defaultstore\user\fred\˜˜$WinFS$_ItemId@{0C092C29-882C-11CF-A6BB-0080C7B2D682}.
In this case, winfstst is the name of the machine, and Defaultstore is a share in WinFS. The path prefix \user\fred further extends the scope and narrows the search space to only the namespace sub-tree rooted at the folder named fred. The file has an ItemId of {0C092C29-882C-11CF-A6BB-0080C7B2D682}. The application recognizes \\winfstst\Defaultstore\user\fred as the specified search space when Fred, in this example, first creates the file with a unique identifier 0C092C29-882C-11CF-A6BB-0080C7B2D682.
In order for WinFS to open this exemplary file, the file remains within the \\winfstst\Defaultstore\user\fred item domain. Consequently, the file is opened successfully with the ItemId when the file is present in a sub-tree rooted at \\winfstst\Defaultstore\user\fred. If the file is not present within a sub-tree rooted in \\winfstst\Defaultstore\user\fred, attempts to open the file will fail. This will prevent a user from accessing items which are not within their item domain, the search space for which that user has access permission.
\\machinename\WinFSShare\user\fred\˜˜$WinFS$_ItemId@{<ItemIDGuid>}
where the itemId is the unique identifier for file 146j. Fred may share files in Folder 144c with Sam by granting Sam permission to open files in the folder \user\fred\ rooted in the defaultstore using an access control list or other method of granting access rights known by those skilled in the art. If Fred renames file 146j as “objectives(fred)”, shown as file 148, the link he has embedded in milestones file 146k will still open the desired file because the ItemId will have remained the same and renamed file 148 can be found within the specified search space of \\machinename\WinFSShare\user\fred\.
Recall that the File System API combines the specified search space and the unique identifier to form the path designation that is used by the File System Kernel to open the file. If the syntax for the path designation is modified for the file system after the file is created it is preferred to include a mechanism for requesting the path designation according to the new syntax when the file is next accessed by the application. In the exemplary WinFS embodiment, an API is provided that returns the path designation given the item domain and the ItemId. That way if the path designation syntax changes, only this function will need to be updated. An exemplary API definition is as follows:
GetItemIdFilePath (String itemDomain, Guid itemId, out String itemIdPath);
It should be understood that the function name, parameters and syntax of such API should not be limited to this example and that alternative, or additional APIs may be provided which instead of returning the path designation, forms the path designation and provides it as an input to the File System Kernel following a change in syntax.
What has been described above includes examples of the illustrative embodiment. It is, of course, not possible to describe every conceivable combination of components or methodologies for purposes of describing the claimed subject matter, but one of ordinary skill in the art may recognize that many further combinations and permutations of the illustrative embodiment are possible. Accordingly, the present document is intended to embrace all such alterations, modifications and variations. Furthermore, to the extent that the term “includes” is used in either the detailed description or the claims, such term is intended to be inclusive in a manner similar to the term “comprising” as “comprising” is interpreted when employed as a transitional word in a claim.
Number | Name | Date | Kind |
---|---|---|---|
5999976 | Schmuck et al. | Dec 1999 | A |
6023706 | Schmuck et al. | Feb 2000 | A |
6119133 | Nusbickel et al. | Sep 2000 | A |
6356863 | Sayle | Mar 2002 | B1 |
7016976 | Merrells et al. | Mar 2006 | B2 |
7047257 | Fletcher et al. | May 2006 | B2 |
7197516 | Hipp et al. | Mar 2007 | B1 |
20020184230 | Merrells et al. | Dec 2002 | A1 |
20030009484 | Hamanaka et al. | Jan 2003 | A1 |
20040163020 | Sidman | Aug 2004 | A1 |
20040255048 | Lev Ran et al. | Dec 2004 | A1 |
20050004925 | Stahl et al. | Jan 2005 | A1 |
20050044523 | Wendt | Feb 2005 | A1 |
20050065986 | Bixby et al. | Mar 2005 | A1 |
20050149525 | Verma et al. | Jul 2005 | A1 |
20060123062 | Bobbitt et al. | Jun 2006 | A1 |
20060133407 | Kuisma | Jun 2006 | A1 |
20060165040 | Rathod et al. | Jul 2006 | A1 |
20060206450 | Fletcher et al. | Sep 2006 | A1 |
20060235894 | Rasmussen et al. | Oct 2006 | A1 |
20070038689 | Shinkai | Feb 2007 | A1 |
20070055703 | Zimran et al. | Mar 2007 | A1 |
20070101256 | Simonyi | May 2007 | A1 |
20070156710 | Kern et al. | Jul 2007 | A1 |
20070174310 | Arrouye et al. | Jul 2007 | A1 |
20070185852 | Erofeev | Aug 2007 | A1 |
20070185938 | Prahlad et al. | Aug 2007 | A1 |
Number | Date | Country | |
---|---|---|---|
20070255699 A1 | Nov 2007 | US |