From owner-freebsd-questions@freebsd.org Tue Jan 29 20:44:02 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 17E7F14CB266 for ; Tue, 29 Jan 2019 20:44:02 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DCB686A884 for ; Tue, 29 Jan 2019 20:44:00 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([92.193.226.69]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPA (Nemesis) id 1MTRIi-1gj79238I8-00TjtD; Tue, 29 Jan 2019 21:43:52 +0100 Date: Tue, 29 Jan 2019 21:43:51 +0100 From: Polytropon To: byrnejb@harte-lyne.ca Cc: "James B. Byrne via freebsd-questions" Subject: Re: RSYNC changes file name Message-Id: <20190129214351.2f32c04c.freebsd@edvax.de> In-Reply-To: <10a14c28507feee71572a2573d319fc3.squirrel@webmail.harte-lyne.ca> References: <9aaa35912b122e88e667e7516ba6a865.squirrel@webmail.harte-lyne.ca> <20190129204033.7312742f.freebsd@edvax.de> <10a14c28507feee71572a2573d319fc3.squirrel@webmail.harte-lyne.ca> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:9GgV9mI0Sdi4R7R8lMtBh/ZGkcasn7VrHOzWHpzDxWH3vri7OAd OY3FdknfN3Pny3cLB16btORz4TMpoHg5KT7BzzGcV3ujOXCeWh1XG8wO8fbUaDQU+UGHMUd k5nrcmhAb1r24sfVgoHFU6p5QaSsRPIzuQcrbfFYUwwdeLcwNOV4OPok8Vk3sqLTVnPsTEM D9xDU8ixekdLtwFvnHGJA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Lo7Lw0RVE0k=:UxPTCJl/StC8xUQ2+9rWiJ HE+xL3BVNJeXobrxoK0GlNzBx9EVwDb6neVkxOvxBenvWb9nMTCcxw09GQhlEJMgKQqfsA0c2 3ifNROVSat9AnL7W3J88OvUVdBaNW4L+CbShjhqOGShOsslmbJwNGVloPLQ3uSSn6Ed+lPFAt NC5vyfNrAtpHUVGzuDC4ssHjE3F5TgmPHyzPLM9/1G3yYeCSafQJ0GxIhpVEOfSFjvE5Lzfyl FIEU6FbcGxN9wl2EfN56nBiNFm9nvEGJxW2l9Wt1E/7jg5xPg76LGtUjHmOpwZ6DeO/VHMYoU V4LupYUjpokT3uoQGJaek86yD3cUtU8F0gE1elF4WduKjdyBmR8WDuXGMh8X9mFBaSaF1ULxf X8deKc7zWHbhGH+umojdgndE4n1tKIJlJeLjxpdyxnLuFaKn+a2dG5HX6Jsz+kkvtC52Gs1eN dxcIjZOwp4/wzYGOaSppjkD3kZuzJcdnCLyD9YvUdtPcwHT2ehRabA9FjP60WW+kHR5lJygCb cFddLGR6XN6t69ccK3udxzXty5tGRmgD52EWd7GhW47D9xPIogaDq/pohxtf/FhzGX25/bWdV 2xoNSFGL2cf9WqAW1jTTXjYmzZqUydUEDQRi63fNhXZsSWlfuH0+lfYEwwb6wUVJB7U/jNByl R3WJ0m4gl+y/f0blJ2h5GR9qlU6SXseteKgO/VePXDUNXvrbR4fZWwv77OqXHGNkUY8ss6iz9 PiXGtw/nzA9bgj7qugEj/cHKpXbryQwgstQAhTCkTP46tqbnlb0whAUTKf0= X-Rspamd-Queue-Id: DCB686A884 X-Spamd-Bar: +++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [5.02 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; MX_GOOD(-0.01)[cached: mx01.schlund.de]; RCPT_COUNT_TWO(0.00)[2]; RECEIVED_SPAMHAUS_PBL(0.00)[69.226.193.92.zen.spamhaus.org : 127.0.0.10]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.52)[0.521,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.92)[0.923,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.97)[0.973,0]; RCVD_IN_DNSWL_NONE(0.00)[135.126.227.212.list.dnswl.org : 127.0.5.0]; MID_CONTAINS_FROM(1.00)[]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.22)[ip: (-0.34), ipnet: 212.227.0.0/16(-0.71), asn: 8560(2.14), country: DE(-0.01)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jan 2019 20:44:02 -0000 On Tue, 29 Jan 2019 15:28:50 -0500, James B. Byrne wrote: > Gpart reports the file system is type 12 which I believe is some > variant of FAT. MS Windows does not permit file names ending in > either a dot or a space. The filesystem silently truncates the > offending character. Ha, just as I thought. :-) If you're going to use the target medium for FreeBSD only (i. e., you won't access it from "Windows"), why not initialize it with UFS? There are even tunefs options that can help optimizing access to specific media, like USB sticks or SD cards. In fact, there even isn't a need for a partition table, if you for example do "newfs /dev/da0" (where da0 corresponds to the medium in question), and then you can use it as "mount -t ufs /dev/da0 /mnt" without problems. Filenames will then correctly be stored. Suggestion: For backing up FreeBSD stuff, keep using FreeBSD stuff. :-) > I discovered this by trying to touch a file named 'seventeen.' which > showed up as 'seventeen' instead. > > It would have been nice to have that munging reported. Inside the VFS tree, the copying process is handled transparently, so rsync (or touch) do not get back an error they could report. However, the "error" will happen at the VFS driver (here: FAT driver) addressed in the "deeper" levels of the VFS, so it would maybe be possible to issue a kernel message which could be shown on the console or at least in the system log. Knowing about restrictions specific to filesystems is important for the FAT and NTFS drivers to keep the r/w mounted filesystems in a consistent state; using "forbidden filenames" can cause the strangest effects in "Windows"... ;-) NUL: -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...