Sprinkler Systems Uhaul move Lawn care Roses and trees Ford Parts Chrysler Parts Lake Powell New IPod Touch Apps New IPhone Apps IPhone Apps IPad Information IPad Apps Android APPS Android Games APPS Android Systems Android Tablets APPS and Beyond Smartphone Apps Smartphone Games Apps Repair and Tools Tablet PC Car Sharing Car Leasing Tabler Pc Fly Fishing Toyota Cars Vacation Rentals Stock market NYSE SSE Stock Freight & Shipping News Gluten Lactose Gout My Coupon Life Campgrounds Check Outdoor Kitchen Design and Redoo Bath Remodeling Palm Springs Las Vegas Vacation Tipps Lake Powell Boating Homes for lease Electric and green Car Blog Pearls and diamonds Whatsapp and forget SMS Blog, What is Whatsapp App Renovation Blog Condo for rent or lease Solar Panel Solar Energie Sun Power Blog Truck for Sale Reconstruction Blog
Computers » cn.bbs.comp.linux » fuse-convmvfs 0.2 released!
fuse-convmvfs 0.2 released! [message #219567] Sa, 01 Juli 2006 05:47
ZC Miao  
You can download from:
http://sourceforge.net/project/showf...roup_id=166276

Project Homepage:
http://sourceforge.net/projects/fuse-convmvfs

What is new in 0.2
------------------
* New Implemented functions: opendir readlink mknod mkdir unlink rmdir
symlink rename link chmod chown(limited) truncate utime write access statfs
* use more elegant and efficient way to get fd when run read and write
operations.
* use permission check to avoid security problems

摘要
==

本软件是一个基于FUSE(Filesystem in USErspace)的用户态文件系统, 用于
将文件系统树中的一个分支的文件名的编码映 射为另一种编码,并且将其装载在
一个其他装载点下。


动机
==

Convmv( http://osx.freshmeat.net/projects/co...%G��% [at] 用 于转换
文件名编码的小工具。 受这个软件的启发,开发出了convmvfs,一个用 转换
文件名编码的文件系统。

一个实用的例子:在中国,计算机系统中广泛 使用一种国家标准GB2312来存储中
文,这种习惯导致了很多中文软件的ftp客户端 只识别远端服务器上的GB2312编
码的文件名。然而现在用于架设ftp服务器的*ni x系统越来越倾向于使用UTF-8编
码来存储文件名。为了解决这个问题,使用本 软件,可以达到这样的效果:假设
一个FTP服务器将/ftp/目录设置为匿名用户登录 ftp根目录,并且其下的文
件名是UTF-8编码的,为了让windows上的只能识别 GB2312编码的客户端能够正常
访问ftp,可以用convmvfs软件将/ftp/pub_gbk映射/ftp/p ub目录,任何访问
/ftp/pub_gbk目录的都将得到GB2312编码的文件名, 但是文件内容将保持无变化。


安装
==

本软件需要你的系统安装有FUSE 2.5或者更高的版本,FUSE可以从这里得到:

http://fuse.sourceforge.net

成功安装和配置FUSE后,在convmvfs的目录下执行 下列命令:

../configure
make
make install (as root)

这样就安装完毕了。你可以执行convmvfs --help得到帮助信息。

如果你是从cvs中得到最新软件, 你需要首先执行'autoreconf -iv'。


如何使用
====

一旦convmvfs被安装,运行是相当简单的:
usage: convmvfs mountpoint [options]

general options:
-o opt,[opt...] mount options
-h --help print help
-V --version print version

FUSE options:
-d -o debug enable debug output (implies -f)
-f foreground operation
-s disable multi-threaded operation

-o allow_other allow access to other users
-o allow_root allow access to root
-o nonempty allow mounts over non-empty file/dir
-o default_permissions enable permission checking by kernel
-o fsname=NAME set filesystem name
-o large_read issue large read requests (2.4 only)
-o max_read=N set maximum size of read requests

-o hard_remove immediate removal (don't hide files)
-o use_ino let filesystem set inode numbers
-o readdir_ino try to fill in d_ino in readdir
-o direct_io use direct I/O
-o kernel_cache cache files in kernel
-o umask=M set file permissions (octal)
-o uid=N set file owner
-o gid=N set file group
-o entry_timeout=T cache timeout for names (1.0s)
-o negative_timeout=T cache timeout for deleted names (0.0s)
-o attr_timeout=T cache timeout for attributes (1.0s)

CONVMVFS options:
-o srcdir=PATH which directory to convert
-o icharset=CHARSET charset used in srcdir
-o ocharset=CHARSET charset used in mounted filesystem

注意:
* 如果你使用普通用户运行软件,首先需要确定 是否有读写权限于/dev/fuse文
件。

* 使用'iconv --list'可以看到软件支持哪些编码。

* 使用allow_other选项可以让其他用户访问文件系 。

* 重要:srcdir和文件系统挂载点不能是同一个文 件夹,否则文件操作将陷入
不可中断的死循环。一定要避免这种情形。

运行实例:
* 挂载文件系统
$convmvfs /ftp/pub_gbk -o srcdir=/ftp/pub, icharset=utf8,ocharset=gbk

* 卸载文件系统
$fusermount -u /ftp/pub_gbk
Vorheriges Thema:linuxIP绰
Nächstes Thema:ѧУûdebianľ
Gehe zu:
  


aktuelle Zeit: So Mai 27 12:44:18 CEST 2012

Insgesamt benötigte Zeit, um die Seite zu erzeugen: 0,01973 Sekunden
.:: Startseite - Hinweise - Impressum ::.

Powered