发明名称 Creating a file descriptor independent of an open operation
摘要 A server computer system receives a file access request for accessing a file in a file system. The file access request includes a file handle for the file. The server computer system assigns a value as a file descriptor for the file. The assignment is performed without issuing a file open request to open the file. The server computer system associates the file descriptor with the file handle in a data store accessible to a storage subsystem and provides the file descriptor for accessing the file to the storage subsystem according to the file access request.
申请公布号 US9110917(B2) 申请公布日期 2015.08.18
申请号 US201313739856 申请日期 2013.01.11
申请人 Red Hat, Inc. 发明人 Avati Anand Vishweswaran;Suryanarayan Amar Tumballi
分类号 G06F7/00;G06F17/30 主分类号 G06F7/00
代理机构 Lowenstein Sandler LLP 代理人 Lowenstein Sandler LLP
主权项 1. A method, comprising: receiving, by a processing device that executes a server in a network file system, a first file access request from a client in the network file system for accessing a file in the network file system, wherein the first file access request comprises a file handle for the file, and wherein the file handle comprises a unique identifier for the file; in response to receiving the first file access request, creating and assigning, by the server, a simulated file descriptor to the file without issuing a file open request to an operating system to open the file to create an actual file descriptor, wherein the simulated file descriptor is not provided by a kernel of the operating system; associating, by the server, the simulated file descriptor with the file handle; in response to receiving a second file access request comprising the simulated file descriptor: identifying the file handle associated with the simulated file descriptor in view of the simulated file descriptor in the second file access request and associated with the file handle;identifying a path to the file in view of the identified file handle, wherein identifying the path comprises at least one of identifying a hard link associated with the file or identifying the path in a database that stores mapping data that maps the path to the file handle; andopening the file in view of the identified path.
地址 Raleigh NC US