From owner-freebsd-questions@FreeBSD.ORG Mon Sep 6 12:30:30 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 422BF16A4E0 for ; Mon, 6 Sep 2004 12:30:30 +0000 (GMT) Received: from mx.dada.it (mail2.dada.it [195.110.100.2]) by mx1.FreeBSD.org (Postfix) with SMTP id 4894543D1D for ; Mon, 6 Sep 2004 12:30:28 +0000 (GMT) (envelope-from riccardo@torrini.org) Received: (qmail 21695 invoked from network); 6 Sep 2004 12:30:26 -0000 Received: from unknown (HELO silos.torrini.home) (195.110.114.101) by mail.dada.it with SMTP; 6 Sep 2004 12:30:26 -0000 Received: from trudy.torrini.home (trudy.torrini.home [192.168.22.3]) by silos.torrini.home (Postfix) with ESMTP id 6766BA962 for ; Mon, 6 Sep 2004 14:30:25 +0200 (CEST) Received: by trudy.torrini.home (Postfix, from userid 1001) id CF1FD1F36; Mon, 6 Sep 2004 14:30:24 +0200 (CEST) Date: Mon, 6 Sep 2004 14:30:24 +0200 From: Daniele To: freebsd-questions@FreeBSD.org Message-ID: <20040906123024.GB75162@trudy.torrini.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i Subject: mount_smbfs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Sep 2004 12:30:30 -0000 Not sure about right ML (maybe fs@), feel free to forward to another one if needed. And please Cc: me. Background: - I need to syncronize two dir hosted on win machines based on data contained into an Oracle DB (direction of copy may change based on owner of file as specified into the DB). I made an sh script that generate a big Makefile with right direction of cp -p but it fail copying a lot of identical file (identical means same md5 and with date of past, already copied previous night (and previous and...). (a lot of fuzzy word, problem is timestamping a remote smb file). Environment: - a freebsd machine (I tested on 4.9-STABLE and 4.10-STABLE) - at least a real win machine with a NTFS exported share (my real case has one w2k-server and one wnt4-server). How to reproduce: - create a mount point, mount_smb the win share, touch a file // on the mount point (or at any level deep): // (you can also change example time but please use even/odd seconds) // # foreach s ( `jot -w%02d 10` ) foreach? touch -t 200401020304.${s} sample${s} foreach? end # ls -lnT sample* -rwxr-xr-x 1 0 0 0 Jan 2 03:04:00 2004 sample01 -rwxr-xr-x 1 0 0 0 Jan 2 03:04:02 2004 sample02 -rwxr-xr-x 1 0 0 0 Jan 2 03:04:02 2004 sample03 -rwxr-xr-x 1 0 0 0 Jan 2 03:04:04 2004 sample04 -rwxr-xr-x 1 0 0 0 Jan 2 03:04:04 2004 sample05 -rwxr-xr-x 1 0 0 0 Jan 2 03:04:06 2004 sample06 -rwxr-xr-x 1 0 0 0 Jan 2 03:04:06 2004 sample07 -rwxr-xr-x 1 0 0 0 Jan 2 03:04:08 2004 sample08 -rwxr-xr-x 1 0 0 0 Jan 2 03:04:08 2004 sample09 -rwxr-xr-x 1 0 0 0 Jan 2 03:04:10 2004 sample10 Any date&time will be rounded up to previous even second :-( If you create a file from the win-side (with touch or notepad or with your favourite tool) you can specify odd seconds, this means that is not a NTFS struct limitations (maybe :-). Who round my time? I need this for an exotic job: syncronize two win machine using data from an Oracle DB. My approach was using a Makefile but every night it copies hundreds of already copied files and it use an expensive WAN link. Yes, I can switch to more robust check, md5 signatures, extraction of time and manual check with rounded values, but any other approach leave this problem... -- TIA, Riccardo.