Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com From: Andrew DeFaria Subject: Re: touch failing on network share Date: Fri, 28 Jan 2005 11:26:21 -0800 Lines: 46 Message-ID: References: <0IB10066UIOUS6 AT pmismtp02 DOT mcilink DOT com> <20050128185743 DOT GA205421 AT Worldnet> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT org X-Gmane-NNTP-Posting-Host: farscape.lynx.com User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) In-Reply-To: <20050128185743.GA205421@Worldnet> X-IsSubscribed: yes Pierre A. Humblet wrote: > On Fri, Jan 28, 2005 at 11:43:41AM -0700, Mark Paulus wrote: > >> I have a network share set up on my OS/2 box using HPFS. On that >> share, I have directory: cygmanaged, and under that, I have >> a directory tmp2. >> >> So, I can mount this directory as: >> >> mount --system --binary -omanaged z:/cygmanaged/tmp2 /tmp2, and it >> looks like everything is fine. >> >> But, when I try to 'touch' any file/directory on that mount, I get >> this error: touch: setting times of `cygwin-equivs/': Permission denied >> >> However, I can vi/edit/rm/mv or do just about anything else that I >> want to the file. I just can't seem to do a touch on it. >> >> Does anyone have any insight into touch as to what it is doing that >> might be causing the permissions problem? >> >> Thanks. >> >> I just tested this on the raw share (/cygdrive/z/foo) and it still >> fails. So, it is not a managed mount problem/issue, but something deeper. > > I have observed a similar problem with a XP HOME mounting a remote > Win98 drive. I traced it to SetFileTime failing, i.e. a MS issue. > "strace touch xxx" will show you what happens. > > Pierre This is interesting and sounds very familiar to a problem I had with using Rational Clearcase. I would mount a snapshot view using Cygwin (I forget its behavior on dynamic views) and touch would likewise fail WRT setting times. Seems to me that it's a file system issue as you were using an HPFS from OS/2. Interestingly Clearcase uses a different file system to. I wonder, that Win 98 drive is also a different file system (FAT). Could it be that SetFileTime only works with NTFS? Is there another Windows call to SetFileTime(s) on FAT and otherwise foreign file systems like HPFS and/or vendor supplied file systems such as Clearcase's? -- Young at heart. Slightly older in other places. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/