From owner-freebsd-bugs@FreeBSD.ORG Thu Apr 19 05:10:02 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8C7F516A403 for ; Thu, 19 Apr 2007 05:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 6D25D13C455 for ; Thu, 19 Apr 2007 05:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l3J5A2L7056531 for ; Thu, 19 Apr 2007 05:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l3J5A23Z056530; Thu, 19 Apr 2007 05:10:02 GMT (envelope-from gnats) Resent-Date: Thu, 19 Apr 2007 05:10:02 GMT Resent-Message-Id: <200704190510.l3J5A23Z056530@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, Voldemar Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BB0CF16A401 for ; Thu, 19 Apr 2007 05:01:05 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 9F93813C487 for ; Thu, 19 Apr 2007 05:01:05 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l3J515xJ056680 for ; Thu, 19 Apr 2007 05:01:05 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l3J4u4Mf052267; Thu, 19 Apr 2007 04:56:04 GMT (envelope-from nobody) Message-Id: <200704190456.l3J4u4Mf052267@www.freebsd.org> Date: Thu, 19 Apr 2007 04:56:04 GMT From: Voldemar To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: misc/111843: Long Names of files are incorrectly created on msdosfs 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, 19 Apr 2007 05:10:02 -0000 >Number: 111843 >Category: misc >Synopsis: Long Names of files are incorrectly created on msdosfs >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 19 05:10:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Voldemar >Release: 6.1-RELEASE >Organization: SSMU >Environment: FreeBSD home.ssmu.ru 6.1-RELEASE FreeBSD 6.1-RELEASE #10: Wed Apr 18 21:30:14 OMSST 2007 root@home.ssmu.ru:/usr/obj/usr/src/sys/home i386 >Description: At creation of a new file on FAT12 and FAT32 (and it is possible also FAT16) if the name of a file finished on one or several space or dots and contains before it some other symbols which number is multiple one LFN-record - the name is created incorrect: the counter of the first LFN-record < 0x40. >How-To-Repeat: root@home > mount_msdosfs -l /dev/fd0 /mnt root@home > mkdir /mnt/test root@home > cd /mnt/test root@home > echo > 0123456789012\ root@home > echo > 0123456789012- root@home > echo > 01234567890123\ root@home > ls 0123456789012- 01234567890123 012345~1 root@home > hd -n 512 . 00000000 2e 20 20 20 20 20 20 20 20 20 20 10 00 7b 37 b0 |. ..{7╟| 00000010 92 36 92 36 00 00 37 b0 92 36 61 06 00 00 00 00 |66..7╟6a.....| 00000020 2e 2e 20 20 20 20 20 20 20 20 20 10 00 7b 37 b0 |.. ..{7╟| 00000030 92 36 92 36 00 00 37 b0 92 36 00 00 00 00 00 00 |66..7╟6......| 00000040 01 30 00 31 00 32 00 33 00 34 00 0f 00 dd 35 00 |.0.1.2.3.4...щ5.| 00000050 36 00 37 00 38 00 39 00 30 00 00 00 31 00 32 00 |6.7.8.9.0...1.2.| 00000060 30 31 32 33 34 35 7e 31 20 20 20 20 00 1f 43 b0 |012345~1 ..C╟| 00000070 92 36 92 36 00 00 43 b0 92 36 ad 00 01 00 00 00 |66..C╟6╜.....| 00000080 42 2d 00 00 00 ff ff ff ff ff ff 0f 00 fd ff ff |B-...ЪЪЪЪЪЪ..ЩЪЪ| 00000090 ff ff ff ff ff ff ff ff ff ff 00 00 ff ff ff ff |ЪЪЪЪЪЪЪЪЪЪ..ЪЪЪЪ| 000000a0 01 30 00 31 00 32 00 33 00 34 00 0f 00 fd 35 00 |.0.1.2.3.4...Щ5.| 000000b0 36 00 37 00 38 00 39 00 30 00 00 00 31 00 32 00 |6.7.8.9.0...1.2.| 000000c0 30 31 32 33 34 35 7e 32 20 20 20 20 00 3f 45 b0 |012345~2 .?E╟| 000000d0 92 36 92 36 00 00 45 b0 92 36 b7 00 01 00 00 00 |66..E╟6╥.....| 000000e0 42 33 00 00 00 ff ff ff ff ff ff 0f 00 1d ff ff |B3...ЪЪЪЪЪЪ...ЪЪ| 000000f0 ff ff ff ff ff ff ff ff ff ff 00 00 ff ff ff ff |ЪЪЪЪЪЪЪЪЪЪ..ЪЪЪЪ| 00000100 01 30 00 31 00 32 00 33 00 34 00 0f 00 1d 35 00 |.0.1.2.3.4....5.| 00000110 36 00 37 00 38 00 39 00 30 00 00 00 31 00 32 00 |6.7.8.9.0...1.2.| 00000120 30 31 32 33 34 35 7e 33 20 20 20 20 00 2b 49 b0 |012345~3 .+I╟| 00000130 92 36 92 36 00 00 49 b0 92 36 0e 01 01 00 00 00 |66..I╟6......| 00000140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000200 Byte by offset 0x40 == 0x01, but not 0x41 ! >Fix: >Release-Note: >Audit-Trail: >Unformatted: