System and method for providing compatibility between distributed file system namespaces and operating system pathname syntax5689701Abstract A system and method facilitating an operating system user's ability to reference objects in a distributed file system having an incompatible namespace. Compatibility is thereby provided between DFS namespaces and operating system pathname syntax not supported in the DFS. A DFS pathname prefix is associated with each drive letter that is attached to a DFS IFS driver. Before an IFS driver is used, an application program issues a command to associate a drive letter with a particular IFS driver. The command issued also carries a DFS pathname prefix within a data buffer. The IFS services the command by validating existence of the DFS pathname prefix, and thereafter stores such prefix into an internal table of the buffer where it is associated with the attached drive letter. File system requests later received by the DFS client IFS driver carrying a pathname containing that drive letter will have their file specifications edited by the DFS code prior to processing. The drive letter in the pathname is replaced by the DFS pathname prefix from the IFS driver's internal table, and operating system slashes in operating system pathname are converted to DFS slashes. The operating system user may thereby reference DFS objects relative to a point in the DFS namespace using the operating system's pathname syntax which the user is more comfortable with. Claims We claim: Description TECHNICAL FIELD
TABLE 1
______________________________________
NAME VALUE
______________________________________
FILE TYPE Data for My.sub.-- App
HISTORY Created by myself 1989
VERSION 1.00
COMMENTS Cannot be used with any other app
KEYPHRASES my.sub.-- own.sub.-- key.sub.-- phrases
SUBJECT A brief summary of the file's
contents or purpose
EXTRA DATA I can store additional data for
My.sub.-- App in an extended attribute
______________________________________
So that EA data may be understood by their so applications, conventions have been established for naming EAs and indicating the type of data they contain. Such EAs associated with a file object may not be part of the file object or its data but rather are "attached" as will be hereinafter described. Referring to Table 2 which follows, it will be apparent that in the OS/2 implementation EAs may contain any type of data as shown by the variety of data types 96 and associated descriptions 98. All user-defined data types are length-preceded, meaning that a word indicating the length of the data in bytes precedes the data. As an example, a representation of the ASCII string "Hello" would be as follows: EAT.sub.-- ASCII 0005 Hello.
TABLE 2
______________________________________
Extended Attribute Data Types
Data Type (96)
Value Description (98)
______________________________________
EAT.sub.-- BINARY
FFFE Binary (non-text) data; the first
WORD following the data type
specifies the length of the data
EAT.sub.-- ASCII
FFFD ASCII text; the first WORD
following the data type specifies
the length of the data
EAT.sub.-- BITMAP
FFFB Bit map data; the first WORD
following the data type specifies
the length of the data
EAT.sub.-- METAFILE
FFFA Metafile data; the first WORD
following the data type specifies
the length of the data
EAT.sub.-- ICON
FFF9 Icon data; the first WORD
following the data type specifies
the length of the data
EAT.sub.-- EA
FFEE ASCII name of another EA that is
associated with the file. The
contents of that EA are to be
included into the current EA.
The first WORD following the
data type specifies the length
of the data.
EAT.sub.-- MVMT
FFDF Multi-Valued, Multi-Typed data -
two or more consecutive extended
attribute values. Each value
has an explicitly specified type.
EAT.sub.-- MVST
FFDE Multi-Valued, Single-Typed data -
two or more consecutive attribute
values. All values have the same
type.
EAT.sub.-- ASN1
FFDD ASN.1 field data; an ISO standard
for describing multivalue data
streams
______________________________________
Because many applications utilize text, bit maps, and other binary data in EAs, standard names have been adopted to identify such formats for a common set of standard EAs although applications are not limited to such EAs and may define their own application-specific EAs. Such standard EAs in the OS/2 convention have a dot as a prefix identifying the EA as a standard EA. The leading dot is reserved, so that applications should not define EAs commencing with a dot. Also, EAs commencing with the characters $, @, &, or + are reserved for system use. Standard EAs which have been defined include .ICON, .TYPE, .KEYPHRASES, and the like more fully described in the previously noted IBM programmer's manual. Now that a description of DCE, DFS, and the EA and FA aspects of OS/2 have been described, a specific DCE DFS client/server system will be described in greater detail with reference to FIG. 10 in which the invention may be implemented in a preferred embodiment. It will be noted from FIG. 10 that the DFS client 96 is implemented executing the OS/2 operating system and the DFS server 98 is implemented employing the AIX (TM) Unix-based operating system of the IBM Corporation. It will also be noted that the client 96 employs the OS/2 installable file system facility well known in the art, thereby removing the need for intercepting file system calls at the user level or kernel level above and below line 100, respectively. The cache manager 102, which handles the manipulation of remote files on the local workstation disk, is implemented at the user level above line 100. A driver on the client machine 96 is attached to a DFS file system driver 104 in the kernel below line 100. An IFS file system request router 106 directs file system requests to the DFS FSD 104 if the requests are associated with the drive to which the DFS FSD is attached. The FSD 104 then routes the file system requests to the DFS cache manager. The OS/2 cache manager (CM) 102 has a file system request administrator (VENUS) in the user space to receive requests from FSD 104. VENUS, 102, in turn includes a pool of threads to process such file system requests. A thread will be allocated to a file system request received from the FSD 104. Such VENUS thread will invoke appropriate mapping routines in CM 102 to translate the FSD 104 requests into CM vnode operations acted upon by the OSF CM 104A through the network by means of the previously discussed client and server remote procedure calls (RPC) 106, 108, respectively. Finally, with respect to FIG. 10, it will be seen that in the client implementation, conventional DOS or windows calls will be issued or received by user applications 110 executing in the client 96 space, such calls being passed between the user application 110 and the IFS file system request router 106. Clients, such as those of OS/2 and AIX, typically expect files and/or directories to contain attributes previously described such as "Archive", "Hidden", "System", "Icon", etc. It will be recalled from the foregoing that these attributes indicate characteristics of the file or directory which may be required by an application. In such operating systems as OS/2 and AIX, their file systems are constructed so that the attributes are "attached" directly to the data as contrasted with the case of DFS herein described wherein there is no provision for such ancillary extended attribute data. Thus, the problem arises that if EAs and FAs may not be attached to a file directly (e.g. the norm in a file system) then how may such attributes associated with an operating system be attached and referenced in the context of another file system such as DFS having no native support for these attributes. In other words, in essence, FAs in OS/2 for example, are attached in part of the corresponding file, whereby when the file is moved, the FAs accompany it. This is not true in DCE for example, so that when a file is copied from a DCE server, heretofore the FAs or other attributes which may be crucial to the application would not accompany the file. Thus, a technique was needed for attaching these attributes in a DCE context. Numerous other related problems have persisted. For example, when a "dir" is performed in OS/2 the user will see files in the directory but typically not related attribute files as a result of normal OS/2 APIs. In any implementation solving the problem of attaching attributes in DFS, it is highly desirable to retain this user convention of not displaying attributes unless explicitly commanded to do so, e.g. it was desirable that such attributes not be visible in the namespace which OS/2 DFS clients could access so that the OS/2 DCE user would see only what would be normally expected on a native OS/2 operating system and not the ancillary files which a typical OS/2 user would know nothing about. Thus, in summary, as a practical example of a typical problem created by current systems, when files copied from a native OS/2 file system (which supports EAs and FAs) are copied to a popular distributed file system such as NFS, which does not support such EAs and FAs, they get deleted. However, applications for example may require such attributes which will accordingly break if attempted to be run without their respective attributes. One attempt to solve the problem was to attach attributes by internal file handles. When a file system is on line and active in DFS, such file handles on a server are meaningful and valid. However, it soon became apparent that their utility in attaching attributes was lost once the system was backed up which is typically done. Internal identifiers or file handles may be efficient, but once the DFS file system is backed up and taken off line, when brought back on line, such files and associated file handles get reassigned as the files are brought back in. In other words, a file "X" might have a handle name "27" when the DES file system is backed up and brought back on line, it would however be assigned the next available internal number, (e.g. although we named it 27, after the server was backed up and brought on line the file might thereafter be designated "38", whereupon the server will no longer know, for example, about the previously identified file attribute). Turning now to FIG. 11, a technique for storing attributes is illustrated by means of a representative example. It will be assumed a file "X" in directory "Y" 112 exists with a number of EAs 114, such as "icon", "ascii" and "type". For this file "X" in directory "Y" 112 in the DFS namespace for which EAs must be created, a subdirectory 116 is created in directory "Y" 112 such as .*OS2DFS.sub.-- EAs. Next, a directory under the .*OS2DFS.sub.-- EAs subdirectory 116 is created shown at reference numeral 118 whose name is the file's name (X). Each of the EAs 114 associated with the file X will be placed under the "X" subdirectory 118, with each of the attribute names such as "Icon" being the file name under the /X subdirectory. A departure in the description relative to FIG. 11 must now be made with respect to "critical" EAs. A field in an EA may be user-specified as being "critical". As to the significance of "critical" designations, applications for example may have to access an attribute and its associated file in order to perform some task where the application may fail. Thus, we must be able to identify quickly and inform the calling function whether the attribute is critical. As an example, in the REXX language, command files in some cases are compiled to operate efficiently. Compiled versions are extended attributes attached to the command version. Instead of carrying two versions of a command file, a compiled binary is "attached" as an EA. If it is specified that all REXX command files are desired to run an application, which would thus include the compiled version of commands, such commands would be "critical" to the application, e.g. if not attached, the application calling for them could not execute. With the foregoing in mind, returning now to FIG. 11, if an EA is determined to be critical, it will be so marked by preceding its file name with a "?". For example, a conventional non-critical EA with an attribute name of "ICON" may be seen in FIG. 11 stored as a file name "ICON". However, an EA which might be deemed critical, such as "TYPE", would be indicated as "?TYPE" as also shown in FIG. 11. It will be noted that OS/2 extended attribute names must follow the same conventions as OS/2 file names, and therefore "?" and "*" are not valid for use in names on OS/2. EA file naming in accordance with the invention becomes more complicated when EA names reach a maximum length. One assumption is that the maximum length attribute name case (with collisions) is seldom if ever going to happen. If the attribute name is the maximum length (for example, 256 characters), then the first two characters of the attribute name will be replaced with a "??". The original name of the attribute will be stored in the file header. Thus, whenever a file name is encountered with a "??" at the beginning, this is a signal to the DFS to look in the file header for the original name of the attribute. Because the original unique attribute name has been changed of course, a possibility arises of file name collisions. For example, two critical EAs with attribute names "A------maxlength . . . " and "B------maxlength . . . " would both have file names of "??----maxlength . . . ". Such potential collisions will therefore be resolve by adding another "?" to the file name. Thus, in the foregoing example, the second EA would have a file name of "???--maxlength . . . " Continuing with the example of FIG. 11, operating systems such as OS/2 may provide for many EAs per file. When performing a "dir" function in OS/2, the corresponding call goes through the API and queries the file system for each file to determine the file size and size of the EAs. In the implementation being herein described, it was undesirable to read all file headers for EA critical status, and size, and accordingly this information was pulled out for all EAs and cumulated or placed in a single file, thereby providing a performance benefit. Thus, in summary on this point, in order to provide efficient access to the total EAs size and number of critical EAs for a file, an additional file 120 is created for each file such as file X and placed under the .*OS2DFS.sub.-- EAS/X directory. This file will have a form and be named *N*C, wherein N is the total size in bytes of all the EAs and C is the number of critical EAs for the file. Once again, the "*" at the beginning of the name is used to prevent conflict with EA names. Using the example of FIG. 11, it will be noted that the file 120 includes a number "70" followed by a number "1". The 70 will be seen to be the sum of the sizes of the attributes ICON, ASCII, and ?TYPE, e.g. 10+40+20. The "1" indicates that the number of critical for file "X" is 1, e.g. the ?TYPE critical EA. In like manner, a subdirectory/Z might be included under the directory 116 for all file "Z" EAs shown at reference numeral 122, with the EAs therefor shown at 124. It will be appreciated that EAs may be attached to directories as well as files. In the example given in FIG. 11, the illustration would be essentially the same if "X" was a directory rather than a file. Furthermore, attaching EAs to the root directory is the only exception to the scheme described in FIG. 11. The directory .*OS2DFS.sub.-- EAs will be created in the root itself since there is not a parent directory. It will be noted that the directory name such as .*OS2DFS.sub.-- EAs is inpermissibile in OS/2 applications. The OS/2 kernel will not permit this across the file system API, but will try to substitute something for the asterisk and will be unable to find any matches but the asterisk itself. This is to be contrasted with, and thus very unlike, the Unix model, where the file system will accept any value for a name, and the various shells are responsible for metacharacter substitutions. In effect, what is being accomplished is the hiding of EAs and FAs in an opaque part of the DFS namespace, at least as far as OS/2 applications and users are concerned. This directory wherein the EAs reside is thereby only "semi-visible" to Unix users. The ameliorating circumstance is that it appears like an application configuration file that even novice Unix users tend to not access or alter. The directory will not be visible because it starts with a ".", unless the Unix user specifically requests that it be seen. Even then, however, DCE DFS provides security support requiring a user to have the proper permission before being allowed to access to a file or directory. This security support has been extended for EA/FA data and files. It requires the same permission to access EA/FA data as is required to access the file to which the EA/FA data is associated. Even if the Unix user has requested viewing of the directory, no user data is visible unless the user would also be able to access the data as an OS/2 user. Turning now to FIG. 12, depicted therein is a flow diagram of how a system such as that of FIG. 10 might employ the EA filing technique beneficially which was just described with reference to FIG. 11. First it will be assumed that an application has made a call for a "dir" function which may include a need to know how big the file is, and information regarding the EAs and FAs attached thereto. The OS/2 operating system would examine the call, and detect that it related to a file in the file system managed by DFS by means of the DFS file system driver, whereupon it is necessary to process the request. This information request about attributes is shown at block 126. The system would then query at 128 whether the previously described .*OS2DFS.sub.-- EAs directory exists. If not, the left branch is executed, indicating at block 130 that no EAs are attached to files in the file system. Consequently, a query for size and/or query for whether critical EAs exist corresponding to the file name "X" will return 0, shown at 132. If, on the other hand, the directory in response to decision block 128 is determined to exist, flow exits to the right to a next decision block 134. At block 134, a query is made as to whether a subdirectory/X having the same name as the file name (X) exists. If not, the flow exits the left path from block 134 indicating as shown at block 136 that EAs are attached to some files in the file system but not file "X", whereupon a 0 is returned, 138. If on the other hand, in response to the decision block 134 it is determined that such a subdirectory/X exists, flow exits to the right of block 134, whereupon files in the subdirectory/X are read, 140. Next, a determination is made at decision block 142 of whether the size of the EAs or critical status has been queried. If not, the EA files (ICON, etc.) are simply read and passed back to the caller, 144. If, on the other hand, the size and/or critical status of EAs has been requested, flow exits to the right of block 142 whereupon the parameter *n*c is returned at block 146. It will be recalled that the "n" in the parameter provides the desired EA size and the "c" provides the count of critical EAs associated with the /X subdirectory. Control is thereafter returned at block 148. Now that a description of storing and utilizing stored EAs in accordance with the invention has been made, attention will focus to the related problem of supporting file attributes, FAs. It will be recalled that OSF DCE DFS also does not have native support for OS/2 file attributes, yet this functionality must, in like manner to EAs, be provided for OS/2 clients prior to any future availability of support through DFS protocols. This function will be provided as follows with reference to Tables 3 and 4. For OS/2 FAs having similar semantics to existing DCE DFS file attributes, existing DCE. DES fields and interfaces will be utilized to access and represent the particular attribute. The OS/2 FAs "Hidden", "System", and "Archive" apply only to OS/2 DFS users and will be represented using the schema hereinafter described. For a file "X" in directory "Y" in the DFS namespace for which OS/2 FAs must be created, a directory ".*OS2DFS.sub.-- FAs" will be created in directory "Y". Similarity to directory 116 in FIG. 11 with respect to EAs will be noted. Also similar to the approach of FIG. 11, the FA's attributes will be represented by a file under .*OS2DFS.sub.-- FAs. The file will be named "FILENAME*V" where "FILENAME" is the target file's name without a path, and "V" is a value representing the file's OS/2 attribute settings. It will be noted that because of size restrictions, the values for V are not directly mapped to the OS/2 attribute values. In other words, an internal table is provided indicating what the value means. For example a "6" could correspond to a "Hidden" value of 4 and "System" value of 2. When initially creating FAs, if the FA values requested by the caller match the defaults shown in Table 3, then no FA directories or file will be created. When searching for a file's FAs and no FA directories or file is found, then the default FA values will be assumed, shown in the right column of Table 3. Shown in Table 4 is a representative example indicating how such FAs will be stored. It will be assumed that a file "X" in directory "Y" exists with FAs of "Hidden" and "System". The first line of Table 4 indicates the representation of file "X" in directory "Y". The second line of Table 4 indicates the subdirectory which contains all FAs for directory "Y". Finally, the third line of Table 4 indicates a file "X*6". From the foregoing, it would be apparent that this indicates that the FAs "Hidden" and "System" exist, as designated by the 6, for file "X".
TABLE 3
______________________________________
File Type Default value of attributes
______________________________________
File Archive 0.times.20
Directory Subdirectory 0.times.10
______________________________________
FAs may also be attached to directories. The example with reference to Table 4 would be the same essentially if "X" was a directory. Also, attaching FAs to the root directory is the only exception to the scheme described above as is the case with EAs. The directory .*OS2DFS.sub.-- FAs will be created in the root itself since there is no parent directory. The components of a representative computer system such as a PC or workstation in which the invention may be implemented will be described which may be utilized by a user as part of a component of the system of FIG. 10. The clients and servers described herein may be preferably implemented with workstations such as an IBM.RTM. RISC System/600.RTM. computer. A representative hardware environment is depicted in FIG. 1 which illustrates a typical hardware configuration of a workstation in accordance with the subject invention having a central processing unit (CPU) 10A such as a conventional microprocessor, and a number of other units interconnected by a system bus 12A. The workstation shown in FIG. 1 includes a random access memory (RAM) 14A, read only memory (ROM) 16A, and I/O adapter 18A for connecting peripheral devices such as disk units 20A to the bus, a user interface adapter 22A for connecting a keyboard 24A, mouse or other pointing device 26A, speaker 28A, microphone 32A, and/or other user interface devices such as a touch screen device, etc. to the bus. The system further includes a communication adapter 34A for connecting the workstation to a data processing network, and a display adapter 36 for connecting the bus to a display device 38A. The workstation has resident thereon an operating system such as the IBM AIX.RTM. operating system. FIG. 14 illustrates a flow diagram of code to be implemented on the systems of FIG. 1 and 10 for handling file system requests in accordance with the invention. First a high level of an implementation of the invention will be provided, followed by a more detailed description with reference to FIGS. 13 and 14. DFS supports a pathname syntax as follows: / . . . /cell.name/fs/<dir1>/<dir2>/<filename>. Further detail regarding naming conventions in DFS and DCE cells may be found on page 7 of the "DFS for AIX/6000" publication and on page 32 et seq of the "Understanding DCE" publication hereinbefore referenced. It will be appreciated that this pathname syntax is substantially different from that of the pathname syntax supported by other operating systems such as the OS/2 operating system. Accordingly, a serious problem was presented for programmers who were involved in porting the DFS client code to such an operating system platform. More specifically, the problem presented was how an operating system user of, for example, OS/2, would be able to reference a file or directory utilizing this unsupported syntax. A conventional mechanism for supporting new file system types has already been discussed with reference to the mechanism in OS/2, namely the provision for an installable file system (IFS). This mechanism was discussed with reference to FIG. 10 and, in particular, the IFS file system request router 106 thereof. Even with the addition of such a facility as IFS on a DFS client, only OS/2-style pathnames continue to be recognized by the OS/2 operating system. The solution offered to this problem by the present invention was to associate a DFS pathname prefix (e.g./ . . . /cellname/fs) with each drive letter that is attached (via an appropriate command such as the "dosFSATTACH"). Before an IFS driver can be used, an application program must issue such a command as "dosFSATTACH" to associate at least one driver letter from the operating system such as OS/2 with that particular IFS driver. The command such as "dosFSATTACH" which is issued to the DFS client IFS driver also carries a DFS pathname prefix within a table defined in a data buffer. The IFS driver services the "dosFSATTACH" by validating the existence of the DFS pathname prefix and storing the pathname prefix into the previously mentioned internal table in the buffer, where it is associated with the attached OS/2 driver letter. All file system requests which are later received by the DFS client IFS driver and which carry a pathname containing that drive letter will have their file specifications edited by the DFS code prior to processing. The drive letter in the pathname is replaced by the DFS pathname prefix from the IFS driver's internal table. All backward slashes in the OS/2 pathname are then converted to forward slashes. It will be appreciated from the foregoing that the effect of the invention is to route the OS/2 driver letter at particular points within the DFS namespace. Moreover, the invention thereby permits the OS/2 user to reference DFS objects relative to that point in the namespace, utilizing the OS/2 pathname syntax that the user is most comfortable with. Many file systems attach at the top of the file space, however this is not the normal way in which the OS/2 and other operating systems use the available space. In accordance with the invention, multiple drives may be provided and, for example, a drive may point to the top of the file space. However in accordance with the invention it may be mounted further down in the namespace wherever desired. In operation, a user, for example, might enter a D: in order to switch to the D drive. A call would then be intercepted by the file system request router 106 (FIG. 10) originating from the application 110. This call signifies the desire to attach the drive D to a certain position in the file space. The operating system would normally be trying to attach a path to a file system to a drive letter whereby normally the entire file space would get attached to the drive D. In DFS, that would of course be the entire DFS file system if attached at the top of the tree. Normally, however, with the large file systems provided by DFS, the desire in fact may to attach down in the tree. Accordingly, instead of attaching at the top, when such a request is routed to the DFS file system driver 104 of FIG. 10, a table is kept in accordance with the invention of where the user actually desires to attach. Therefore, it is a feature of the invention to store, for a particular drive, the location in the DFS namespace where it is desired that the D: drive be attached. The next time a request is received for a drive, it is not simply assumed that what is desired is the location at the top of the DFS namespace. The aforementioned table is therefore utilized to decide where to route the request within the DFS namespace. As previously discussed regarding the problem addressed by the invention, it will be recalled that with respect to OS/2 operating system user or the user of other operating systems, such a user may not be conversant and comfortable with a distributed file system syntax such as that of DFS. If the user were attached at 25 the top of the DFS tree, he or she would have to deal with the "/ . . . " and other unfamiliar syntax. Accordingly, in accordance with the invention, it permits the user to attach further down on the tree by means of the table retained in the client 96. When a request is received for a file on a drive, this request is converted from a drive-oriented request to the DFS namespace syntax before it is routed to the server shown at reference numeral 98 of FIG. 10. This conversion is performed in the DFS file system driver 104 wherein the lookup table resides. Thus, by the time the request is routed to the right side of the diagram of FIG. 10 to the server 98, the client name has been transformed to the corresponding DFS name and then transported to the server. When a drive is to be attached, a request for such action indicates the drive to be attached and what is desired to be attached to it. In the case of a LAN server, for example, this would include the domain or server name; in the case of the NFS file system, a mount point, and in the case of DFS, a string utilizing DFS syntax. Such a request must be "validated" by determining if the specified pathname exists, e.g. in the case of the LAN, verifying the server is there, or, in the case of DFS, determining whether a valid point in the namespace has been specified. The pathnames thus specified in accordance with the invention are tracked in an internal table. More particularly, the pathname prefix specified in a request to attach a drive is associated with that drive letter and retained in the table. In this manner, when a user references a particular drive letter, the internal table has retained the original request. Once the table is thereby established, all file system requests received by the IFS driver which carry the pathname that has the drive letter will be modified before processing. In other words, the drive letter in a request will be modified before further processing by the server whereby the drive letter is replaced by the pathname prefix previously saved in the internal buffer. In this manner, every time the drive is referenced in a path, it will be modified based upon the contents of the internal table for that drive to be an actual DFS path instead of the conventional drive syntax of the operating system. With the foregoing in mind, turning now to FIG. 13 and 14, these flow diagrams may be more readily understood. First, regarding FIG. 13, this is an illustration of a flow diagram of program code in accordance with the invention to be implemented whereby the previously noted internal table is constructed. First, it will be assumed that an appropriate user application 110 of FIG. 10 has issued a "dosFSATTACH" or like command to a DFS client IFS driver to be routed by the router 106. The purpose of such a command is to associate one or more OS/2 drive letter such as, illustratively, driver letter "X" with a particular IFS driver. The "dosFSATTACH" command thus carries the DFS pathname prefix. Upon the request being generated to associate the drive letter with the IFS driver, 150, the process then performs a check of whether the DFS pathname prefix in the request is valid, 152. If not, the routine ends, 156. If, on the other hand, when the IFS driver services the DOS attach command, the IFS driver has validated existence of the DFS pathname prefix (e.g. verified that a valid point in the file system namespace exists), the process exits the left branch from box 152. At this point, the pathname prefix corresponding to the request is stored in a table in an internal buffer in the DFS file system driver 104. This prefix is stored in the table associated with the corresponding attached OS/2 drive letter "X" by the client 96. The purpose for doing this is that when the user references the particular drive letter again, there is an internal table containing what was originally asked for which may be thereafter utilized once the table is established in the manner of the invention. After the table has been established, turning now to FIG. 14, there is illustrated a flow diagram of code in an implementation of the invention which would take advantage of this feature in processing a file system request. More specifically, referring to FIG. 14, it will first be assumed that a file system request has been generated, 158, from an application 110 for a file on a particular drive whereby this drive is referenced in a path. After generating the request 158, it is received by the DFS client IFS driver 106, shown at box 160. Next, a check is made to determine if the request carries a particular pathname containing the drive letter "X" shown at box 162. If not, the routine ends, 166. If, on the other hand, the check in box 162 reveals that the pathname is present in the request, the process exits to the left of box 162, whereupon the file specification is modified or edited by the DFS code before further processing, shown at box 164. This process of modifying or editing the file spec is essentially the step of transforming the client name of the request to the DFS name before it is transported to the server side 98 of FIG. 10. This is done by replacing the drive letter in the request by the pathname prefix previously saved in the internal buffer, which is the actual DFS path rather than the conventional drive syntax. As shown by the dotted lines in FIG. 14, the more detailed steps effected in such editing are shown in such alternate path. Specifically, the previously appropriate entry therein, the drive letter in the generated table in accordance with FIG. 13 is searched, shown at block 168. In response to location of an pathname "X" is replaced with the DFS pathname prefix from the IFS driver's internal table, block 170. Finally, the back slashes in the operating system pathname in the request are converted to forward slashes 172, whereupon further processing of the request by the server is permitted as shown at block 174. While the invention has been shown and described with reference to particular embodiments thereof, it will be understood by those skilled in the art that the foregoing and other changes in form and detail may be made therein without departing from the spirit and scope of the invention.
|
Same subclass Same class Consider this |
||||||||||
