rpms/util-linux/devel util-linux-2.13-hwclock-systohc.patch, NONE, 1.1 util-linux-2.13-mount-fake.patch, NONE, 1.1 util-linux-2.13-umount-sysfs.patch, 1.1, 1.2 util-linux.spec, 1.152, 1.153

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Fri Apr 6 10:57:47 UTC 2007


Author: kzak

Update of /cvs/dist/rpms/util-linux/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv16604

Modified Files:
	util-linux-2.13-umount-sysfs.patch util-linux.spec 
Added Files:
	util-linux-2.13-hwclock-systohc.patch 
	util-linux-2.13-mount-fake.patch 
Log Message:
* Fri Apr  6 2007 Karel Zak <kzak at redhat.com> 2.13-0.51
- fix #150493 - hwclock --systohc sets clock 0.5 seconds slow
- fix #220873 - starting RPC idmapd: Error: RPC MTAB does not exist.
                (added rpc_pipefs to util-linux-2.13-umount-sysfs.patch)
- fix #227903 - mount -f does not work with NFS-mounted


util-linux-2.13-hwclock-systohc.patch:
 hwclock.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

--- NEW FILE util-linux-2.13-hwclock-systohc.patch ---
commit 99c392d8ba163e35b9d562dd4bcf7dd476ad3573
Author: Karel Zak <kzak at redhat.com>
Date:   Tue Mar 20 00:32:37 2007 +0100

    hwclock: fix --systohc sets clock 0.5 seconds slow
    
    quote from rh150493:
    
    	The kernel code, when setting the BIOS clock notes that the clock time
    	ticks to the next second 0.5 seconds after adjusting it  (see
    	linux/arch/i386/kernel/time.c).
    
    	hwclock --systohc sets the CMOS clock at the 1 second boundry and thus
    	causes the clock to be wrong by 500ms each time it is reset.  If the
    	clock is set every shutdown then the clock will have a reboot-count
    	related drift as well as the natural drift problems of the clock. Note
    	that this also mucks up the drift calculations, of course.
    
    Signed-off-by: Karel Zak <kzak at redhat.com>

diff --git a/hwclock/hwclock.c b/hwclock/hwclock.c
index 9731dad..820c388 100644
--- a/hwclock/hwclock.c
+++ b/hwclock/hwclock.c
@@ -517,14 +517,19 @@ set_hardware_clock_exact(const time_t sethwtime,
            "Delaying further to reach the next full second.\n"),
            time_diff(beginsystime, refsystime));
   
-  /* Now delay some more until Hardware Clock time newhwtime arrives */
+  /*
+   * Now delay some more until Hardware Clock time newhwtime arrives.  The -500
+   * ms is because the Hardware Clock always sets to your set time plus 500 ms
+   * (because it is designed to update to the next second precisely 500 ms
+   * after you finish the setting).
+   */
   do {
 	  float tdiff;
 	  gettimeofday(&nowsystime, NULL);
 	  tdiff = time_diff(nowsystime, beginsystime);
 	  if (tdiff < 0)
 		  goto time_resync;	/* probably time was reset */
-  } while (time_diff(nowsystime, refsystime) < newhwtime - sethwtime);
+  } while (time_diff(nowsystime, refsystime) - 0.5 < newhwtime - sethwtime);
   
   set_hardware_clock(newhwtime, universal, testing);
 }

util-linux-2.13-mount-fake.patch:
 mount.c |    2 ++
 1 files changed, 2 insertions(+)

--- NEW FILE util-linux-2.13-mount-fake.patch ---
--- util-linux-2.13-pre7/mount/mount.c.kzak	2007-02-09 12:54:20.000000000 +0100
+++ util-linux-2.13-pre7/mount/mount.c	2007-02-09 12:54:14.000000000 +0100
@@ -602,6 +602,8 @@
 		 mountargs[i++] = node;
 		 if (sloppy && (strcmp(type, "nfs")==0 || strcmp(type, "nfs4")==0))
 		      mountargs[i++] = "-s";
+		 if (fake)
+		      mountargs[i++] = "-f";
 		 if (nomtab)
 		      mountargs[i++] = "-n";
 		 if (verbose)

util-linux-2.13-umount-sysfs.patch:
 umount.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: util-linux-2.13-umount-sysfs.patch
===================================================================
RCS file: /cvs/dist/rpms/util-linux/devel/util-linux-2.13-umount-sysfs.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- util-linux-2.13-umount-sysfs.patch	23 Feb 2006 14:19:40 -0000	1.1
+++ util-linux-2.13-umount-sysfs.patch	6 Apr 2007 10:57:45 -0000	1.2
@@ -5,7 +5,7 @@
  		/* nodev stuff: sysfs, usbfs, oprofilefs, ... */
  		if (types == NULL)
 -			types = "noproc,nodevfs,nodevpts";
-+			types = "noproc,nodevfs,nodevpts,nosysfs";
++			types = "noproc,nodevfs,nodevpts,nosysfs,rpc_pipefs";
  		result = umount_all (types, test_opts);
  	} else if (argc < 1) {
  		usage (stderr, 2);


Index: util-linux.spec
===================================================================
RCS file: /cvs/dist/rpms/util-linux/devel/util-linux.spec,v
retrieving revision 1.152
retrieving revision 1.153
diff -u -r1.152 -r1.153
--- util-linux.spec	3 Mar 2007 20:50:41 -0000	1.152
+++ util-linux.spec	6 Apr 2007 10:57:45 -0000	1.153
@@ -9,7 +9,7 @@
 Summary: A collection of basic system utilities.
 Name: util-linux
 Version: 2.13
-Release: 0.50%{?dist}
+Release: 0.51%{?dist}
 License: distributable
 Group: System Environment/Base
 
@@ -243,6 +243,11 @@
 Patch261: util-linux-2.13-namei-logic.patch
 # 222293 - undocumented partx,addpart, delpart
 Patch262: util-linux-2.13-partx-man.patch
+# 150493 - hwclock --systohc sets clock 0.5 seconds slow
+Patch263: util-linux-2.13-hwclock-systohc.patch
+# 227903 - mount -f does not work with NFS-mounted
+Patch264: util-linux-2.13-mount-fake.patch
+
 
 # When adding patches, please make sure that it is easy to find out what bug # the 
 # patch fixes.
@@ -344,6 +349,8 @@
 %patch260 -p1
 %patch261 -p1
 %patch262 -p1
+%patch263 -p1
+%patch264 -p1
 
 %build
 unset LINGUAS || :
@@ -757,6 +764,12 @@
 /sbin/losetup
 
 %changelog
+* Fri Apr  6 2007 Karel Zak <kzak at redhat.com> 2.13-0.51
+- fix #150493 - hwclock --systohc sets clock 0.5 seconds slow
+- fix #220873 - starting RPC idmapd: Error: RPC MTAB does not exist.
+                (added rpc_pipefs to util-linux-2.13-umount-sysfs.patch)
+- fix #227903 - mount -f does not work with NFS-mounted
+
 * Sat Mar  3 2007 David Zeuthen <davidz at redhat.com> 2.13-0.50
 - include ConsoleKit session module by default (#229172)
 




More information about the fedora-cvs-commits mailing list