Patent ID: 7849112

Claim:
A method of maintaining quotas for storage resources used by a file server for storing files in selected directory trees of a file system, the method including: (a) the file server responding to a client request specifying a file in the file system by performing a search for the file in the file system, and upon finding that the file is in a directory tree having a quota of the storage resources, returning a file handle including a tree quota identifier identifying the quota of the directory tree; (b) the file server responding to a client request for increasing storage resources used by the file, the client request for increasing storage resources used by the file including the file handle, the file server responding to the client request for increasing storage resources used by the file by inspecting the file handle and upon finding the tree quota identifier in the file handle, using the tree quota identifier to find the quota identified by the tree quota identifier, and checking whether the client request for increasing storage resources used by the file can be satisfied without exceeding the quota identified by the tree quota identifier.