Method and device for writing data based on common Internet file system

A file system and general-purpose network technology, applied in the field of writing data based on a general-purpose network file system, can solve the problem of low effective utilization of bandwidth resources

Inactive Publication Date: 2019-02-05
NEW H3C TECH CO LTD
View PDF9 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the purpose of this application is to provide a method and device for writing data based on a gene...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for writing data based on common Internet file system
  • Method and device for writing data based on common Internet file system
  • Method and device for writing data based on common Internet file system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only It is a part of the embodiments of this application, not all of them. The components of the embodiments of the application generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations. Accordingly, the following detailed description of the embodiments of the application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method and device for writing data based on a common Internet file system. The method comprises the steps of starting a thread to write SMB (Server Message Block) message datain a received file write request into a preset memory area; blocking the thread after it is monitored that the data is written into the preset memory area, and embedding a thread identity of the blocked thread into a preset waiting queue linked list; shearing each thread identity to a preset synchronization queue linked list after it is determined that the thread corresponding to the thread identity in the waiting queue linked list is woken up; indicating the woken thread to read the SMB message data of the synchronization queue linked list in the memory area, and writing the data into a disk; and traversing the synchronization queue linked list after the data is written into the disk, returning write success information to clients mapped by the traversed thread identities in sequence, and waking up the thread corresponding to the thread identity in the waiting queue linked list after the write success information is returned to the client mapped by the lastly traversed thread. A utilization rate of bandwidth resources can be effectively improved.

Description

technical field [0001] The present application relates to the field of communication technologies, and in particular, to a method and device for writing data based on a common network file system (CIFS, Common Internet Files System). Background technique [0002] CIFS is a communication protocol that provides access to remote servers for computer devices with various operating systems such as Windows / Linux / Mac OS in the network. In a Network Attached Storage (NAS, Network AttachedStorage) cluster, the NAS shared files in the nodes are based on the CIFS server for data transmission, providing shared and data backup files for computer equipment. Taking the Windows operating system as an example, a Windows client can access NAS shared files on a node through a CIFS server. Wherein, the CIFS server transmits data with the Windows client and the node based on the Server Message Block (SMB, Server Message Block) protocol. [0003] Since the CIFS server adopts the SMB protocol, S...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L12/883H04L29/08G06F16/18H04L49/9015
CPCH04L49/9015H04L67/1097
Inventor 张婷庄泽强
Owner NEW H3C TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products