发明名称 Symbolic-link identifying
摘要 Identifying symbolic links in network file systems is provided. An absolute path may be determined at a network file server. This may include determining a complete client path from an initial client path and combining the complete client path with a server export path. Once the absolute path is determined, it may be traversed using a file descriptor of each file in the absolute path to identify a symbolic link.
申请公布号 US9542403(B2) 申请公布日期 2017.01.10
申请号 US201414548733 申请日期 2014.11.20
申请人 International Business Machines Corporation 发明人 Jujjuri Venkateswararao;Kodi Sripathi;Mohan Raj Mohan Kumar;Veetil Aneesh K.
分类号 G06F7/00;G06F17/30 主分类号 G06F7/00
代理机构 代理人 Bennett Steven
主权项 1. A computer-implemented method of identifying a symbolic link in a path, comprising: determining, at a network file server, an absolute path having no symbolic links; and traversing, at the network file server, the determined absolute path using a file descriptor of each file in the absolute path to identify a first symbolic link that was inserted in the absolute path after the absolute path was determined, including starting at a root file or directory of the absolute path and sequentially attempting to open each file or directory in the absolute path, wherein opening each file is performed using an open operation with a first parameter that causes the open operation to open a file or directory that is adjacent a most recently returned file descriptor in the absolute path, and a second parameter that causes the open operation to determine whether the adjacent file or directory is a symbolic link, wherein the open operation is a specialized open operation that starts from a directory identified by the first parameter as opposed to a general-purpose open operation that starts from a current working directory.
地址 Armonk NY US