[wellylug] Weird samba + mod date/create date issue
Nigel Roberts
nigel at nobiscuit.com
Wed Oct 6 23:58:12 NZDT 2004
Looks like this a chance to get my name in the kernel :)
/me starts reading the source
On Wed, 06 Oct 2004 at 22:34:19 +1300, Carl Klitscher wrote:
>
> I'm seeing a similar problem with a windows share. I also get different
> results depending on if (from outside the directory) I do ls against the
> file or the directory. Best I can come up with so far is a failure to
> handle GMT+13h very well (a uniquely NZ problem). Problem is I can't read
> code well enough to prove it and also can't work work out if it is a
> problem at the linux end or the windows end... i.e. is smbfs passing a bad
> date string to windows or is windows interpreting the date string badly.
> Given that I get different results depending on how I use ls and, like you,
> a file created on the windows side returns the correct date/time to the
> linux side I suspect it is smbfs with the problem.
>
> And I get -12h 47m which is 13m off 13h... spooky ay!
>
> Carl
>
> wellylug-admin at lists.wellylug.org.nz wrote on 10/05/2004 05:23:08 PM:
>
> > Here's a curly one.
> >
> > I have a share mounted via smbfs on my linux desktop. This share is on
> > a NetApp filer somewhere, but I've also tried this on a an old linux
> > server as well. Basically, since day light savings came into effect,
> > any file I create on the share gets a time creation timestamp that is
> > way out (approximately 12 hours and 48 minutes behind). This really
> > confuses applications that rely on these times, such as emacs.
> >
> > If I create a file on the local file system, it get's the correct date.
> >
> > Here's an example:
> >
> > first local:
> >
> > $ date && touch new && ls -l new
> > Tue Oct 5 17:18:41 NZDT 2004
> > -rw-r--r-- 1 nigelr nigelr 0 2004-10-05 17:18 new
> > $
> >
> > and then the remote samba share:
> >
> > $ date && touch new && ls -l new
> > Tue Oct 5 17:17:22 NZDT 2004
> > -rwxr--r-- 1 nigelr nigelr 0 2004-10-05 04:30 new
> > $
> >
> > The date on both the servers are correct as they are using the same
> > time source as my desktop. If I create a file using windows to access
> > the share, it get's the correct date (and it reads as the correct date
> > using linux as well).
> >
> > Anyone seen anything like this before? Any suggestions?
> >
> >
> > Regards,
> > Nigel
> >
> >
> > --
> > Wellington Linux Users Group Mailing List: wellylug at lists.wellylug.org.nz
> > To Leave: http://lists.wellylug.org.nz/mailman/listinfo/wellylug
>
>
>
> --
> Wellington Linux Users Group Mailing List: wellylug at lists.wellylug.org.nz
> To Leave: http://lists.wellylug.org.nz/mailman/listinfo/wellylug
More information about the wellylug
mailing list