IP Library Granted Patent US 11,221,997
Granted Patent B2
US 11,221,997 · App. 15/813,389 · Granted Jan 11, 2022

On-demand creation and access of a virtual file system

Inventor: Wenjie Mi (Hangzhou, CN)
Assignee: Advanced New Technologies Co., Ltd.
G06F16/188G06F16/162G06F16/183H04L29/08
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 11,221,997
App. No.
15/813,389
Granted
Jan 11, 2022
Kind
B2
Abstract

A first creation request for creating a virtual file system corresponding to a first storage device in an operating system is received. The virtual file system corresponding to the first storage device is created in a preset path in the operating system using a Filesystem in Userspace (FUSE) utility in the operating system. A first access request for the preset path is received. The first access request is sent to the virtual file system when the first access request for the preset path is received, such that the virtual file system accesses the first storage device according to the first access request.

Claims (79)

1. A computer-implemented method, comprising:

receiving a first creation request for creating, in an operating system, a virtual file system corresponding to a first storage device, the first storage device being an open-source distributed file system;

in response to receiving the first creation request,

determining whether a network file system corresponding to a second storage device is mounted in the operating system, the second storage device being a network attached storage;

in response to determining that the network file system is mounted in the operating system, acquiring a path, that the network file system is mounted at, as a preset path;

dismounting the network file system corresponding to the second storage device from the preset path;

creating, in the preset path in the operating system, the virtual file system corresponding to the first storage device by using a Filesystem in Userspace (FUSE) utility in the operating system;

receiving a first access request for the preset path;

sending the first access request to the virtual file system, such that the virtual file system accesses the first storage device according to the first access request and in a same access mode in which the operating system accesses a local storage device;

receiving a mount request for mounting, in the preset path, the network file system corresponding to the second storage device;

dismounting the virtual file system corresponding to the first storage device and created in the preset path, when the mount request is received;

mounting, in the preset path, the network file system corresponding to the second storage device:

receiving a second access request for the preset path; and

sending the second access request to the network file system when the second access request for the preset path is received, such that the network file system accesses the second storage device according to the second access request.

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

receiving a second creation request for creating a to-be-created folder in the first storage device through a sub-path of the preset path, the second creation request including an identifier of the to-be-created folder;

sending the second creation request to the virtual file system when the second creation request is received, such that the virtual file system creates the to-be-created folder in the first storage device according to the identifier of the to-be-created folder; and

establishing a correspondence relationship between the sub-path and the identifier of the to-be-created folder.

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

receiving a deletion request for deleting a folder from the first storage device through a sub-path of the preset path;

acquiring a correspondence relationship between a preset sub-path and an identifier of a folder when the deletion request is received;

searching the correspondence relationship for the identifier of a folder corresponding to the sub-path;

sending the identifier of the folder corresponding to the sub-path to the virtual file system, such that the virtual file system deletes the folder corresponding to the identifier of the folder from the first storage device; and

deleting the correspondence relationship between the sub-path and the identifier of the folder.

4. The computer-implemented method of claim 1 , wherein the first creation request is received from an application on a mobile device.

5. The computer-implemented method of claim 1 , wherein the first creation request is received through an interface on a web page.

6. A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations comprising:

receiving a first creation request for creating, in an operating system, a virtual file system corresponding to a first storage device, the first storage device being an open-source distributed file system;

in response to receiving the first creation request,

determining whether a network file system corresponding to a second storage device is mounted in the operating system, the second storage device being a network attached storage;

in response to determining that the network file system is mounted in the operating system, acquiring a path, that the network file system is mounted at, as a preset path;

dismounting the network file system corresponding to the second storage device from the preset path;

creating, in the preset path in the operating system, the virtual file system corresponding to the first storage device by using a Filesystem in Userspace (FUSE) utility in the operating system;

receiving a first access request for the preset path;

sending the first access request to the virtual file system, such that the virtual file system accesses the first storage device according to the first access request and in a same access mode in which the operating system accesses a local storage device;

receiving a mount request for mounting, in the preset path, the network file system corresponding to the second storage device;

dismounting the virtual file system corresponding to the first storage device and created in the preset path, when the mount request is received;

mounting, in the preset path, the network file system corresponding to the second storage device;

receiving a second access request for the preset path; and

sending the second access request to the network file system when the second access request for the preset path is received, such that the network file system accesses the second storage device according to the second access request.

7. The non-transitory, computer-readable medium of claim 6 , the operations further comprising:

receiving a second creation request for creating a to-be-created folder in the first storage device through a sub-path of the preset path, the second creation request including an identifier of the to-be-created folder;

sending the second creation request to the virtual file system when the second creation request is received, such that the virtual file system creates the to-be-created folder in the first storage device according to the identifier of the to-be-created folder; and

establishing a correspondence relationship between the sub-path and the identifier of the to-be-created folder.

8. The non-transitory, computer-readable medium of claim 6 , the operations further comprising:

receiving a deletion request for deleting a folder from the first storage device through a sub-path of the preset path;

acquiring a correspondence relationship between a preset sub-path and an identifier of a folder when the deletion request is received;

searching the correspondence relationship for the identifier of a folder corresponding to the sub-path;

sending the identifier of the folder corresponding to the sub-path to the virtual file system, such that the virtual file system deletes the folder corresponding to the identifier of the folder from the first storage device; and

deleting the correspondence relationship between the sub-path and the identifier of the folder.

9. The non-transitory, computer-readable medium of claim 6 , wherein the first creation request is received from an application on a mobile device.

10. The non-transitory, computer-readable medium of claim 6 , wherein the first creation request is received through an interface on a web page.

11. A computer-implemented system, comprising:

one or more computers; and

one or more computer memory devices interoperably coupled with the one or more computers and having tangible, non-transitory, machine-readable media storing instructions, that when executed by the one or more computers, perform operations comprising:

receiving a first creation request for creating, in an operating system, a virtual file system corresponding to a first storage device, the first storage device being an open-source distributed file system;

in response to receiving the first creation request,

determining whether a network file system corresponding to a second storage device is mounted in the operating system, the second storage device being a network attached storage;

in response to determining that the network file system is mounted in the operating system, acquiring a path, that the network file system is mounted at, as a preset path;

dismounting the network file system corresponding to the second storage device from the preset path;

creating, in the preset path in the operating system, the virtual file system corresponding to the first storage device by using a Filesystem in Userspace (FUSE) utility in the operating system;

receiving a first access request for the preset path;

sending the first access request to the virtual file system, such that the virtual file system accesses the first storage device according to the first access request and in a same access mode in which the operating system accesses a local storage device;

receiving a mount request for mounting, in the preset path, the network file system corresponding to the second storage device;

dismounting the virtual file system corresponding to the first storage device and created in the preset path, when the mount request is received;

mounting, in the preset path, the network file system corresponding to the second storage device;

receiving a second access request for the preset path; and

sending the second access request to the network file system when the second access request for the preset path is received, such that the network file system accesses the second storage device according to the second access request.

12. The computer-implemented system of claim 11 , the operations further comprising:

receiving a second creation request for creating a to-be-created folder in the first storage device through a sub-path of the preset path, the second creation request including an identifier of the to-be-created folder;

sending the second creation request to the virtual file system when the second creation request is received, such that the virtual file system creates the to-be-created folder in the first storage device according to the identifier of the to-be-created folder; and

establishing a correspondence relationship between the sub-path and the identifier of the to-be-created folder.

13. The computer-implemented system of claim 11 , the operations further comprising:

receiving a deletion request for deleting a folder from the first storage device through a sub-path of the preset path;

acquiring a correspondence relationship between a preset sub-path and an identifier of a folder when the deletion request is received;

searching the correspondence relationship for the identifier of a folder corresponding to the sub-path;

sending the identifier of the folder corresponding to the sub-path to the virtual file system, such that the virtual file system deletes the folder corresponding to the identifier of the folder from the first storage device; and

deleting the correspondence relationship between the sub-path and the identifier of the folder.

14. The computer-implemented system of claim 11 , wherein the first creation request is received from an application on a mobile device.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 10, 2020
From: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
To: ADVANCED NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053754/0625 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 31, 2020
From: ALIBABA GROUP HOLDING LIMITED
To: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053743/0464 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 30, 2018
From: MI, WENJIE
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 044778/0855 →
Priority Claims (1)
CN 201510309492.7 · Jun 8, 2015 · national
Continuity (2)
Continuation PCTCN2016084224 · Jun 1, 2016
Related Publication 20180075060A1 · Mar 15, 2018