hottub.patents
US 12,499,089 B2#3368620 Most CitedActiveUnited States (USPTO)Utility

Directory tree delete as a supported file system operation

0Forward Citations (#3368620 Global)
0.0/yrCitation Velocity (#3368620 Global)
0.00Citation PageRank (#3368620 Global)
6Prior Art Cited
8Structured Claims
0Drawings / Sheets

Abstract

The system described herein introduces a file system operation that enables a file system to delete a directory tree without the overhead associated with opening each file in the directory tree, marking the file for deletion, and closing the file. Accordingly, the file system is able to delete directories and files in the directory tree independent of communicating with, and being transparent to, filter drivers in the operating system. The file system operation is implemented via a directory tree delete attribute included in a request for deletion of a directory tree. The file system can perform the file system operation in a foreground manner or in a deferred manner based on the directory tree delete attribute respectively specifying foreground deletion or deferred deletion. By operating on files and directories in a single invocation, the file system can optimize overheads related to security checks and data transfer across a user-to-kernel boundary.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 0.

Claims (8)

  1. Claim 1Independent Claim

    A method implemented by a file system of a computing device, comprising: receiving, from an application, a request to perform a file system operation that deletes directories and files in a directory tree, wherein the request includes: an identification associated with the directory tree; a directory tree delete attribute that designates the file system operation to be performed without communicating with a filter driver of an operating system; and a token indicating an identity of the application and an identity of a user that initiates the request via the application, the token being useable to determine whether the application is authorized to delete the directories and the files in the directory tree; performing a security check by processing the token and access control information associated with the files in the directory tree; determining, based on the security check, that the application and the user are authorized to delete the directories and the files in the directory tree;

  2. Claim 2Depends on #1

    The method of claim 1, further comprising confirming that the filter driver has provided authorization to perform the file system operation via the directory tree delete attribute.

  3. Claim 3Depends on #2

    The method of claim 2, wherein the authorization is specifically provided for a storage unit of the storage device on which the directories and the files are stored.

  4. Claim 4Depends on #2

    The method of claim 2, wherein the authorization is specifically provided for the directory tree.

  5. Claim 5Depends on #1

    The method of claim 1, wherein: the access control information includes access control lists; and performing the security check comprises, for an access control list associated with a file of the files: iterating through token list entries and access control list entries to identify a token list entry that matches an access control list entry; and confirming that the access control list entry authorizes deletion of the file.

  6. Claim 6Depends on #5

    The method of claim 5, further comprising: adding an identifier for the access control list to a cache configured to store identifiers for access control lists the token is authorized to delete; and checking the cache to determine that another file, of the files, associated with the access control list is authorized to be deleted based on the identifier for the access control list having already been added to the cache.

  7. Claim 7Depends on #5

    The method of claim 5, further comprising: tracking a first number of files stored in a directory, the directory including the file; and tracking a second number of files associated with an inherited access control list from the directory, wherein performing the security check comprises: determining that the first number is equal to the second number; deleting the files stored in the directory based on the iterating and the confirming implemented for the access control list associated with the file.

  8. Claim 8Depends on #1

    The method of claim 1, wherein: the directory tree delete attribute specifies foreground deletion of the directories and the files in the directory tree; and performing the file system operation comprises executing a foreground thread, based on the foreground deletion specified in the directory tree delete attribute, to delete the directories and the files in the directory tree from the storage device.

Technical Overview & Description

BACKGROUND An operating system of a computing device (e.g., a server, a desktop computer, a laptop computer) is configured to interact with a file system to perform operations in association with files stored on a storage device (e.g., open a file, delete a file, write to a file, read from a file, replace a file, copy a file, move a file, search for a file, create a file). A file system is configured as a hierarchical structure that includes nodes representing directories and/or files. Moreover, a file system comprises logic that enables navigation through the nodes to locate a file (e.g., a document, an executable, a spreadsheet, an image, a video, etc.) and to perform an operation in association with the file. In certain instances, an application executing via the operating system may want to delete a large number of files (e.g., hundreds or even thousands of files). Generally, a large number of files can be associated with a directory tree. Accordingly, a directory tree includes a plurality of nodes that represent multiple directories and/or multiple files located in the multiple directories. In one example, a large number of files are created and stored in a directory tree when a developer is using a software development application to write and/or revise program code for a software product. The files may be referred to as “ intermediate ” files in the sense that the files are temporarily stored as part of the directory tree. In this example, when the intermediate files are no longer needed, the software development application can attempt to delete all the files in the directory tree at the same time. In a conventional approach to deleting all the files in a directory tree based on a request from an application, the operating system and/or the file system is required to enumerate each directory in the directory tree, open each file that is found, mark the file for deletion, and then close the file. This creates a large amount of overhead for the operating syste

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

References Cited — Backward Prior Art (6)

PatentTitleYearCitations

Non-Patent Literature (10)

  • “
  • 14.6 Deleting Files
  • ”
  • , Retrieved From: https://www.gnu.org/software/libc/manual/html_node/Deleting-Files.html, Retrieved on: Nov. 8, 2022, 2 Pages.
  • “
  • Deleting a tree directory with tree-delete
  • ”
  • , Retrieved on: https://knowledge.hitachivantara.com/Documents/Storage/NAS_Platform/13.9/NAS_Administration_Guides/File_Services_Administration_Guide/19_Deleting_a_tree_directory_with_tree-delete, Dec. 4, 2020, 5 Pages.
  • “
  • File_Disposition_Information_Ex Structure (Ntddk.H)