Subject: kern/20418: utimes() over msdosfs: mtime one second less than requested
To: None <gnats-bugs@gnats.netbsd.org>
From: None <srp@tworoads.net>
List: netbsd-bugs
Date: 02/18/2003 13:27:13
>Number:         20418
>Category:       kern
>Synopsis:       Using utimes on files in an msdos fs results in mtime one second less than requested
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 18 13:28:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Scott Presnell
>Release:        NetBSD 1.5.2
>Organization:
	Self
>Environment:
System: NetBSD low.tworoads.net 1.5.2 NetBSD 1.5.2 (YUKON) #29: Tue Jan 28 07:53:04 PST 2003 root@dirt.tworoads.net:/usr/src/sys/arch/i386/compile/YUKON i386


>Description:

utimes() syscall (via touch or rdist) over msdosfs filesystem always
results in a mtime setting one second less that that requested.
This greatly impacts using rdist for file maintenance.

>How-To-Repeat:

% df -t msdos
Filesystem  512-blocks     Used    Avail Capacity  Mounted on
/dev/wd0g     16354256 14140840  2213416    86%    /winc
/dev/wd0h     45361440 26934176 18427264    59%    /wind

% cd /winc/Scott
% 200206180005.37 foo
% stat foo
  File: "foo"
  Size: 7749         Allocated Blocks: 16           Filetype: Regular File
  Mode: (0755/-rwxr-xr-x)         Uid: ( 1075/     srp)  Gid: (  100/   staff)
Device:  0,6   Inode: 68841575  Links: 1    
Access: Tue Jun 18 00:00:00 2002
Modify: Tue Jun 18 00:05:36 2002
Change: Tue Jun 18 08:58:44 2002


>Fix:
        In msdosfs_conv.c:unix2dostime()?
>Release-Note:
>Audit-Trail:
>Unformatted: