From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 10d4db,245712ec584daccd,start X-Google-Attributes: gid10d4db,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!news.glorb.com!news.alt.net!cola.stump.algebra.com!robomod!not-for-mail From: ZC Miao Newsgroups: comp.os.linux.announce Subject: fuse-convmvfs 0.2 released! Date: Mon, 17 Jul 2006 08:55:35 -0500 Organization: Bentium Ltd. (CN99) Sender: hellwolf@cocteau.freehell.org Message-ID: NNTP-Posting-Host: 222.188.149.208 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.yaako.com 1151725141 5329 222.188.149.208 (1 Jul 2006 03:39:01 GMT) X-Complaints-To: usenet@news.yaako.com NNTP-Posting-Date: Sat, 1 Jul 2006 03:39:01 +0000 (UTC) Return-Path: X-COLA-Policy: http://stump.algebra.com/~cola X-COLA-Info-1: Send submissions to cola@stump.algebra.com X-COLA-Info-2: Send complaints to cola-admin@stump.algebra.com X-Comment: moderators do not necessarily agree or disagree with this article. X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov) X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on ak74.algebra.com X-Spam-Level: X-Spam-Status: No, score=0.4 required=2.0 tests=BAYES_50,FORGED_RCVD_HELO, TW_MK,TW_MV,TW_NV,TW_VM autolearn=no version=3.1.1 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 X-Auth: PGPMoose V1.1 PGP comp.os.linux.announce iQBVAwUARLuW1yFvAtx2nXvNAQG3QgH9GXVtjwLVKUxXepQoLMlh4yEAUzXaEu3f Krl0WK72bovmLktqVaEzRox4rXwZtUuJzC2gE1aPE0shBPX7wDVgfg== =Fp1u Xref: g2news2.google.com comp.os.linux.announce:336 You can download it from: http://sourceforge.net/project/showfiles.php?group_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 --------------------------------------------------------------------------- Abstract ======== This is a filesystem client use the FUSE(Filesystem in USErspace) interface to convert file name from one charset to another. Motivation ========== Convmv(http://osx.freshmeat.net/projects/convmv/)is a utility to converts filenames (not file content), directories, and even whole filesystems to a different encoding. Inspired by this tool, born was the convmvfs which mirror a whole filesystem tree from one charset to another. For example, in China there's a National Standard called GB2312 which defined a charset to present most of the Chinese character. And many ftp client used in China only accept and show filename in GB2312. But in *nix world i18n is more acceptable than l10n so many *nix server use UTF-8. For example, there's a linux hosted box run a ftp server app on it. The ftp server export /ftp/pub to anonymous access in which all filenames are in UTF-8 charset. Now we can make a directory called /ftp/pub_gb2312 and use our convmvfs tool to mount a special fuse filesystem on /ftp/pub_gb2312, which hotly convert the filename in /ftp/pub from UTF-8 to GB2312 but leave the contant unchanged. Install ======= First you need to download FUSE 2.5 or later from: http://fuse.sourceforge.net After installing FUSE, compile convmvfs the usual way: ./configure make make install (as root) And you are ready to go.You can now type 'convmvfs --help" to get help infomation. If checking out from CVS for the first time also do 'autoreconf -iv' before doing './configure'. How to use ========== Once convmvfs is installed running it is very simple: 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 Note: * If you use normal user to mount file system be sure to have r/w permision to /dev/fuse. * use `iconv --list` to see which charsets are supported. * to allow other user to access the mount point use allow_other option * IMPORTANT: if mount point and srcdir was the same dir, readdir oper would enter dead loop. BE SURE TO AVOID THIS SITUATION! Sample use: * to mount $convmvfs /ftp/pub_gbk -o srcdir=/ftp/pub, icharset=utf8,ocharset=gbk * to umount $fusermount -u /ftp/pub_gbk ########################################################################## # Send submissions for comp.os.linux.announce to: cola@stump.algebra.com # # PLEASE remember a short description of the software and the LOCATION. # # This group is archived at http://stump.algebra.com/~cola/ # ##########################################################################