CN104917826A - Method for realizing FTP access based on automatic code conversion in heterogeneous environment - Google Patents
Method for realizing FTP access based on automatic code conversion in heterogeneous environment Download PDFInfo
- Publication number
- CN104917826A CN104917826A CN201510272594.6A CN201510272594A CN104917826A CN 104917826 A CN104917826 A CN 104917826A CN 201510272594 A CN201510272594 A CN 201510272594A CN 104917826 A CN104917826 A CN 104917826A
- Authority
- CN
- China
- Prior art keywords
- ftp
- file system
- user
- fuse
- accesses
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Abstract
Disclosed in the invention is a method for realizing file transfer protocol (FTP) access based on automatic code conversion in a heterogeneous environment. According to the method, an interface provided by a FUSE is used for realizing a self-defined user-state file system Ftp_FS; a FTP space unit is mounted to a local file system based on the Ftp_FS; and the access of a mounting point directory by the user is oriented to the FTP space unit again automatically. In the heterogeneous environment, a coding sub module of a Ftp_FS file system is used for mounting a FTP space unit to a local file system based on a specified code format; and an FTP client is used for carrying out accessing. According to the invention, because the FTP is mounted to the local file system, the terminal user can operate a file at an FTP server like the way of operating the local file, thereby improving the user experience. On the basis of intelligent transcoding, a problem of messy code caused by different coding in a heterogeneous environment can be solved.
Description
Technical field
The present invention relates to system architecture technical field, it is a kind of convenient and support that the mode changed by autocoding accesses the method for FTP under isomerous environment to be specifically related to.
Background technology
FTP, FTP-File Transfer Protocol, i.e. file transfer protocol (FTP) is in actual life, use a kind of agreement quite widely.Company utilizes FTP to carry out building of knowledge sharing storehouse, facilitates employee to download corporate document and application software.The submission of ftp server for student's Course Exercise or the distribution for teaching courseware can be built by school.Exactly because the feature such as easy-to-use, powerful that facilitates of FTP makes File Transfer Protocol very popular.A lot of operating system all bundlees FTP assembly, and user can utilize these assemblies carry out building of ftp server or access the ftp server being positioned at far-end easily.
FTP has been widely used.But generally need to go to access ftp server with special ftp client.This brings some puzzlements just to some naive users.How to shield this ins and outs to user?
Company work environment be not unalterable, and be in most cases isomery.The system coding that under Chinese environment, Windows Server gives tacit consent to is GBK coding, and Linux generally uses more general UTF8 coding to be used as the default code of system, and this inconsistent of isomerous environment coding will cause a lot of problem.For the purpose of simple, we have built a ftp server at Windows Server at hypothesis, because working principle needs to utilize under linux ftp client to access ftp server on Window Server, the incompatibility due to GBK coding and UTF8 coding will cause the ftp client of Linux see containing Chinese filename mess code.
Summary of the invention
The technical problem to be solved in the present invention is: for this problem, and it is a kind of convenient and support that the mode changed by autocoding accesses the method for FTP under isomerous environment to the invention provides.
The technical solution adopted in the present invention is:
The mode changed by autocoding under a kind of isomerous environment accesses the method for FTP, described method utilizes FUSE(FileSystem in UserSpace) the file system Ftp_FS of an Interface realization self-defining User space that provides, utilize Ftp_FS FTP space can be mounted on local file system easily, user can be redirected to FTP space automatically to the access of mount point catalogue.
Ins and outs are shielded to terminal use.User only needs to go as access local file to access mount point catalogue just can complete read-write flow process to ftp server, very convenient.
Fuse user file system, as loadable module, allows non-privileged users to set up the file system of complete function, and does not need to recompilate kernel.Fuse module only provides the entrance of kernel module, and the main code of itself is arranged in user's space.For read-write Virtual File System, fuse is a well selection.Fuse comprises a kernel module and a user's space finger daemon, is called by most VFS and all entrusts a special finger daemon to process.
Under isomerous environment, utilizing the encoding submodule of Ftp_FS file system, by specifying specific coded format that FTP space is mounted on local file system, utilizing ftp client to conduct interviews.
The object of prescribed coding form is exactly automatically can complete this to be encoded to conversion between Linux default code when user accesses this mount point catalogue.
Under isomerous environment, the ftp server that such as Windows Server builds, utilizes Ftp_FS file system to utilize ftp client to conduct interviews under linux.
Described method implementation procedure is as follows:
1) user accesses the mount point catalogue of FTP space on local file system;
2) system is redirected to access request the VFS module of linux kernel;
3) VFS hands to FUSE kernel module access request and processes;
4) FUSE module calls Ftp_FS;
5) Ftp_FS accesses the ftp server on Windows Server;
6) ftp server backspace file list;
7) if the default code of ftp server place system is inconsistent with the system coding of Linux, then the automatic conversion that transcoding submodule carries out encoding is called;
8) listed files that transcoding is good is delivered FUSE module;
9) FUSE module delivers VFS module;
10) VFS returns the listed files of correct transcoding;
11) user reads without mess code listed files.
Beneficial effect of the present invention is:
The inventive method can allow terminal use go to operate the file on ftp server as operation local file by carry FTP to local file system, improve Consumer's Experience, by intelligent code-transferring, solve isomerous environment owing to encoding difference and the Confused-code caused.
figure of description
Fig. 1 is the inventive method schematic diagram.
Embodiment
Below according to Figure of description, in conjunction with embodiment, the present invention is further described:
The mode changed by autocoding under a kind of isomerous environment accesses the method for FTP, described method utilizes FUSE(FileSystem in UserSpace) the file system Ftp_FS of an Interface realization self-defining User space that provides, utilize Ftp_FS FTP space can be mounted on local file system easily, user can be redirected to FTP space automatically to the access of mount point catalogue.
Ins and outs are shielded to terminal use.User only needs to go as access local file to access mount point catalogue just can complete read-write flow process to ftp server, very convenient.
Fuse user file system, as loadable module, allows non-privileged users to set up the file system of complete function, and does not need to recompilate kernel.Fuse module only provides the entrance of kernel module, and the main code of itself is arranged in user's space.For read-write Virtual File System, fuse is a well selection.Fuse comprises a kernel module and a user's space finger daemon, is called by most VFS and all entrusts a special finger daemon to process.
Under isomerous environment, utilizing the encoding submodule of Ftp_FS file system, by specifying specific coded format that FTP space is mounted on local file system, utilizing ftp client to conduct interviews.
The object of prescribed coding form is exactly automatically can complete this to be encoded to conversion between Linux default code when user accesses this mount point catalogue.
Under isomerous environment, the ftp server that such as Windows Server builds, utilizes Ftp_FS file system to utilize ftp client to conduct interviews under linux.
As shown in Figure 1, described method implementation procedure is as follows:
1) user accesses the mount point catalogue of FTP space on local file system;
2) system is redirected to access request the VFS module of linux kernel;
3) VFS hands to FUSE kernel module access request and processes;
4) FUSE module calls Ftp_FS;
5) Ftp_FS accesses the ftp server on Windows Server;
6) ftp server backspace file list;
7) if the default code of ftp server place system is inconsistent with the system coding of Linux, then the automatic conversion that transcoding submodule carries out encoding is called;
8) listed files that transcoding is good is delivered FUSE module;
9) FUSE module delivers VFS module;
10) VFS returns the listed files of correct transcoding;
11) user reads without mess code listed files.
Above execution mode is only for illustration of the present invention; and be not limitation of the present invention; the those of ordinary skill of relevant technical field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all equivalent technical schemes also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.
Claims (3)
1. the mode changed by autocoding under an isomerous environment accesses the method for FTP, it is characterized in that: the file system Ftp_FS of the Interface realization self-defining User space that described method utilizes FUSE to provide, utilize Ftp_FS that FTP space is mounted on local file system, user can be redirected to FTP space automatically to the access of mount point catalogue.
2. the mode changed by autocoding under a kind of isomerous environment according to claim 1 accesses the method for FTP, it is characterized in that: under isomerous environment, utilize the encoding submodule of Ftp_FS file system, by specifying specific coded format that FTP space is mounted on local file system, ftp client is utilized to conduct interviews.
3. the mode changed by autocoding under a kind of isomerous environment according to claim 1 and 2 accesses the method for FTP, it is characterized in that, described method implementation procedure is as follows:
1) user accesses the mount point catalogue of FTP space on local file system;
2) system is redirected to access request the VFS module of linux kernel;
3) VFS hands to FUSE kernel module access request and processes;
4) FUSE module calls Ftp_FS;
5) Ftp_FS accesses the ftp server on Windows Server;
6) ftp server backspace file list;
7) if the default code of ftp server place system is inconsistent with the system coding of Linux, then the automatic conversion that transcoding submodule carries out encoding is called;
8) listed files that transcoding is good is delivered FUSE module;
9) FUSE module delivers VFS module;
10) VFS returns the listed files of correct transcoding;
11) user reads without mess code listed files.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510272594.6A CN104917826A (en) | 2015-05-26 | 2015-05-26 | Method for realizing FTP access based on automatic code conversion in heterogeneous environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510272594.6A CN104917826A (en) | 2015-05-26 | 2015-05-26 | Method for realizing FTP access based on automatic code conversion in heterogeneous environment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104917826A true CN104917826A (en) | 2015-09-16 |
Family
ID=54086523
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510272594.6A Pending CN104917826A (en) | 2015-05-26 | 2015-05-26 | Method for realizing FTP access based on automatic code conversion in heterogeneous environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104917826A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106897466A (en) * | 2017-04-14 | 2017-06-27 | 泰康保险集团股份有限公司 | Physical examination data matching method and system, storage medium and electronic equipment |
CN110708376A (en) * | 2019-09-30 | 2020-01-17 | 广州竞远安全技术股份有限公司 | Processing and forwarding system and method for massive compressed files |
CN112165463A (en) * | 2020-09-14 | 2021-01-01 | 杭州安恒信息技术股份有限公司 | Audit data generation method, device, equipment and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101902502A (en) * | 2010-08-08 | 2010-12-01 | 北京大学 | Transparent data storage method and system on basis of Android |
CN103744748A (en) * | 2014-01-10 | 2014-04-23 | 浪潮电子信息产业股份有限公司 | Method for simply, rapidly and automatically backuping FTP (File Transport Protocol) server |
CN103986756A (en) * | 2014-05-12 | 2014-08-13 | 浪潮电子信息产业股份有限公司 | Method for solving Chinese messy code problem of FTP service access cluster storage system |
CN104516687A (en) * | 2014-12-22 | 2015-04-15 | 中国科学院信息工程研究所 | Windows remote mapping method for Linux block device |
-
2015
- 2015-05-26 CN CN201510272594.6A patent/CN104917826A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101902502A (en) * | 2010-08-08 | 2010-12-01 | 北京大学 | Transparent data storage method and system on basis of Android |
CN103744748A (en) * | 2014-01-10 | 2014-04-23 | 浪潮电子信息产业股份有限公司 | Method for simply, rapidly and automatically backuping FTP (File Transport Protocol) server |
CN103986756A (en) * | 2014-05-12 | 2014-08-13 | 浪潮电子信息产业股份有限公司 | Method for solving Chinese messy code problem of FTP service access cluster storage system |
CN104516687A (en) * | 2014-12-22 | 2015-04-15 | 中国科学院信息工程研究所 | Windows remote mapping method for Linux block device |
Non-Patent Citations (1)
Title |
---|
朱科强: "ubuntu安装curlftpfs挂载ftp目录到本地", 《51CTO博客HTTP://ZHUKEQIANG.BLOG.51CTO.COM/8692790/1384706》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106897466A (en) * | 2017-04-14 | 2017-06-27 | 泰康保险集团股份有限公司 | Physical examination data matching method and system, storage medium and electronic equipment |
CN110708376A (en) * | 2019-09-30 | 2020-01-17 | 广州竞远安全技术股份有限公司 | Processing and forwarding system and method for massive compressed files |
CN112165463A (en) * | 2020-09-14 | 2021-01-01 | 杭州安恒信息技术股份有限公司 | Audit data generation method, device, equipment and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110362372A (en) | Page translation method, device, medium and electronic equipment | |
CN107623738B (en) | A kind of WebView bridge joint mouth stain mapping and analysis method towards Android application | |
US9436528B2 (en) | Integrated support for application porting transparency and streamlined system migration in heterogeneous platform environments | |
US9201596B2 (en) | Transmitting data by means of storage area network | |
US20210334118A1 (en) | Opening local files in remote applications | |
US9002864B1 (en) | Cross-platform conversion of encoded mobile app store links | |
CN104917826A (en) | Method for realizing FTP access based on automatic code conversion in heterogeneous environment | |
CN104486357A (en) | Method for achieving role-based access control (RBAC) based on SSH website | |
US10225152B1 (en) | Access control policy evaluation and remediation | |
CN113590363A (en) | Data transmission method, device, electronic equipment and storage medium | |
CN111708753A (en) | Method, device and equipment for evaluating database migration and computer storage medium | |
CN102946415A (en) | Implementation method and device for local application of mobile terminal | |
CN103220359A (en) | Management system and management method for desktop all-in-one machine | |
CN109032573A (en) | A kind of hardware programming system and method | |
CN112131162A (en) | Data transmission method, system, device and medium based on USB equipment | |
TW201616846A (en) | Execution method of guidance device | |
CN105094768A (en) | Application interface generation method and application interface generation device | |
US11782881B2 (en) | Recommending remotely executed applications for opening files | |
CN103793321B (en) | application program detection method and system | |
CN103067464B (en) | Intelligent terminal method for remote controlling computer and system | |
CN111917559B (en) | Text wireless transmitter and system based on USB | |
CN104808970A (en) | Method and system for realizing internationalized software | |
US20210374106A1 (en) | Using drag-and-drop to open local files remotely | |
KR20070122202A (en) | Signaling to a peripheral via irregular read operations | |
CN102929559B (en) | Method and system for providing file |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150916 |