From owner-freebsd-bugs@FreeBSD.ORG Thu Oct 23 12:00:06 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 389891065672 for ; Thu, 23 Oct 2008 12:00:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0D4998FC1C for ; Thu, 23 Oct 2008 12:00:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id m9NC05fR051957 for ; Thu, 23 Oct 2008 12:00:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9NC05wC051956; Thu, 23 Oct 2008 12:00:05 GMT (envelope-from gnats) Resent-Date: Thu, 23 Oct 2008 12:00:05 GMT Resent-Message-Id: <200810231200.m9NC05wC051956@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Oleg Gawriloff Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4FB101065672 for ; Thu, 23 Oct 2008 11:56:27 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 3EAC68FC1C for ; Thu, 23 Oct 2008 11:56:27 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id m9NBuQfs088605 for ; Thu, 23 Oct 2008 11:56:26 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id m9NBuQji088604; Thu, 23 Oct 2008 11:56:26 GMT (envelope-from nobody) Message-Id: <200810231156.m9NBuQji088604@www.freebsd.org> Date: Thu, 23 Oct 2008 11:56:26 GMT From: Oleg Gawriloff To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/128315: ntfs-3g does not work with ru_RU.KOI8-R X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Oct 2008 12:00:06 -0000 >Number: 128315 >Category: misc >Synopsis: ntfs-3g does not work with ru_RU.KOI8-R >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Oct 23 12:00:05 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Oleg Gawriloff >Release: 6.2 >Organization: Atlant Telecom >Environment: FreeBSD stork.telecom.by 6.2-RELEASE-p10 FreeBSD 6.2-RELEASE-p10 #5: Sun May 25 15:25:26 EEST 2008 root@stork.telecom.by:/usr/obj/usr/src/sys/STORK amd64 >Description: We have NTFS disk with some russian filenames. Locale in FreeBSD is KOI8-R. When mounting with: /dev/da14s1 /usr/jails/torrentjl/mnt/TransferB ntfs-3g ro,noatime,noauto,uid=65534,gid=65533,noexec,locale=ru_RU.KOI8-R In log files: Oct 23 14:48:54 stork ntfs-3g[37698]: Version 1.2531 external FUSE 27 Oct 23 14:48:54 stork ntfs-3g[37698]: Mounted /dev/da14s1 (Read-Only, label "", NTFS 3.1) Oct 23 14:48:54 stork ntfs-3g[37698]: Cmdline options: ro,noatime,noauto,uid=65534,gid=65533,noexec,locale=ru_RU.KOI8-R Oct 23 14:48:54 stork ntfs-3g[37698]: Mount options: ro,noexec,silent,allow_other,nonempty,default_permissions,noatime,fsname=/dev/da14s1 And then doing ls /usr/jails/torrentjl/mnt/TransferB there is no russian filenames. In error log I see following: Oct 23 14:49:07 stork ntfs-3g[37698]: Skipping unrepresentable filename (inode 793): Illegal byte sequence for each of russian filenames. When mounting with: /dev/da14s1 /usr/jails/torrentjl/mnt/TransferB ntfs-3g ro,noati me,noauto,uid=65534,gid=65533,noexec,locale=ru_RU.UTF-8 0 0 Oct 23 14:52:26 stork ntfs-3g[40443]: Version 1.2531 external FUSE 27 Oct 23 14:52:26 stork ntfs-3g[40443]: Mounted /dev/da14s1 (Read-Only, label "", NTFS 3.1) Oct 23 14:52:26 stork ntfs-3g[40443]: Cmdline options: ro,noatime,noauto,uid=65534,gid=65533,noexec,locale=ru_RU.UTF-8 Oct 23 14:52:26 stork ntfs-3g[40443]: Mount options: ro,noexec,silent,allow_other,nonempty,default_permissions,noatime,fsname=/dev/da14s1 There is no errors in log, but russian filenames are in UTF8 (which is really inconvinient). When mounting using FreeBSD NTFS driver with: /dev/da14s1 /usr/jails/torrentjl/mnt/TransferB ntfs ro,noati me,noauto,-u=65534,-g=65533,noexec,-C=KOI8-R 0 0 All russian filenames are in KOI8-R which is good, but reading speed is 3.8Mbytes/sec (in ntfs-3g reading speed is 32 Mbytes/sec). PS: In /etc/profile we have: export MM_CHARSET="KOI8-R" export LANG="ru_RU.KOI8-R" export LC_TIME=POSIX >How-To-Repeat: Mount NTFS partition with russian filenames with locale=ru_RU.KOI8-R >Fix: >Release-Note: >Audit-Trail: >Unformatted: