IP Library Granted Patent US 8,626,917
Granted Patent B2
US 8,626,917 · App. 13/422,715 · Granted Jan 7, 2014

File access using counter locking mechanism

Inventors: Ivaylo Iliev (Sofia, BG); Vencislav Dimitrov (Pernik, BG); Georgi Stanev (Sofia, BG)
Assignee: SAP AG
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 8,626,917
App. No.
13/422,715
Granted
Jan 7, 2014
Kind
B2
Abstract

In an embodiment, a method is provided for accessing a file node. In this method, a file access request specifying a file node to be accessed by way of a file system is received at a server from a client device. A counter is referenced to identify that the file node is being accessed in response to a different file access request. The counter is configured to track whether the file node is being accessed. The file node is provided to the client device when the counter indicates a termination of access to the file node resulting from the different file access request.

Claims (45)

1. A computer-implemented method operable at a server, the method comprising:

receiving, from a client device, a file access request specifying a file node to be accessed by way of a file system;

referencing a counter to identify that the file node is being accessed in response to a different file access request, the counter being configured to track whether the file node is being accessed; and

providing, to the client device, access to the file node when the counter indicates a termination of access to the file node resulting from the different file access request.

2. The computer-implemented method of claim 1 , further comprising:

if the counter indicates the file node is being accessed in response to the different file access request, waiting a predetermined amount of time; and

after waiting the predetermined amount of time, referencing the counter to determine whether the file node is being accessed in response to the different file access request.

3. The computer-implemented method of claim 1 , wherein the file access request is a request to read the file node, providing access to the file node including providing a copy of the file node to the client device.

4. The computer-implemented method of claim 3 , further comprising:

prior to providing access to the file node,

adjusting the counter to indicate the file node is being read;

reading the file node; and

adjusting the counter to indicate the access to the file node resulting from the file access request has terminated,

wherein providing the copy of the file node to the client device is based on the reading of the file node.

5. The computer-implemented method of claim 1 , wherein the file access request is a request to modify the file node.

6. The computer-implemented method of claim 5 , further comprising:

prior to providing access to the file node, adjusting the counter to indicate the file node is being modified by the client device; and

after providing access to the file node, adjusting the counter to indicate the access to the file node resulting from the file access request has terminated.

7. The computer-implemented method of claim 1 , wherein the counter is configured to track whether the file node is being modified.

8. The computer-implemented method of claim 1 , wherein the counter is configured to track whether the file node is being read.

9. The computer-implemented method of claim 1 , wherein the file node is a file.

10. The computer-implemented method of claim 1 , wherein the file node is a folder having one or more files.

11. The computer-implemented method of claim 1 , wherein the file access request includes a batch access request specifying a plurality of entities to be accessed.

12. A system comprising:

a hardware-implemented request module configured to receive, from a client device, a file access request specifying a file node to be accessed by way of a file system;

a hardware-implemented lock mechanism module configured to reference a counter to identify that the file node is being accessed in response to a different file access request, the counter being configured to track whether the file node is being accessed; and

a hardware-implemented dispatch module configured to provide to the client device access to the file node when the counter indicates a termination of access to the file node resulting from the different file access request.

13. The system of claim 12 , wherein the hardware-implemented lock mechanism module is further configured to wait a predetermined amount of time if the counter indicates the file node is being accessed in response to the different file access request and reference the counter to determine whether the file node is being accessed in response to the different file access request after waiting the predetermined amount of time.

14. The system of claim 12 , wherein the file access request is a request to read the file node, the hardware-implemented dispatch module configured to provide a copy of the file node to the client device.

15. The system of claim 14 , wherein the hardware-implemented lock mechanism module is further configured to:

prior to providing access to the file node:

adjust the counter to indicate the file node is being read;

read the file node; and

adjust the counter to indicate the access to the file node resulting from the file access request has terminated,

wherein providing the copy of the file node to the client device is based on the reading of the file node.

16. The system of claim 12 , wherein the file access request is a request to modify the file node.

17. The system of claim 16 , wherein the hardware-implemented lock mechanism module is further configured to adjust the counter to indicate the file node is being modified by the client device prior to providing access to the file node and adjust the counter to indicate the access to the file node resulting from the file access request has terminated after providing access to the file node.

18. A machine-readable, non-transitory storage medium storing instructions which, when executed by one or more processors, cause the one or more processors to perform operations, comprising:

receiving, from a client device, a file access request specifying a file node to be accessed by way of a file system;

referencing a counter to identify that the file node is being accessed in response to a different file access request, the counter being configured to track whether the file node is being accessed; and

providing, to the client device, access to the file node when the counter indicates a termination of access to the file node resulting from the different file access request.

19. The machine-readable, non-transitory storage medium of claim 18 , wherein the counter is configured to track whether the file node is being modified or whether the file node is being read.

20. The machine-readable, non-transitory storage medium of claim 18 , wherein the instructions cause the one or more processors to perform operations, further comprising:

if the counter indicates the file node is being accessed in response to the different file access request, waiting a predetermined amount of time; and

after waiting the predetermined amount of time, referencing the counter to determine whether the file node is being accessed in response to the different file access request.

Assignments (2)
CHANGE OF NAME Recorded Aug 26, 2014
From: SAP AG
To: SAP SE
Reel/Frame 033625/0334 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 16, 2012
From: ILIEV, IVAYLO; DIMITROV, VENCISLAV; STANEV, GEORGI
To: SAP AG
Reel/Frame 027879/0775 →
Continuity (1)
Related Publication 20130246622A1 · Sep 19, 2013