lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0702131627210.5124@boston.corp.fedex.com>
Date:	Tue, 13 Feb 2007 16:38:22 +0800 (SGT)
From:	Jeff Chua <jeff.chua.linux@...il.com>
To:	Andi Kleen <ak@...e.de>
cc:	lkml <linux-kernel@...r.kernel.org>,
	Arjan van de Ven <arjan@...radead.org>,
	Miquel van Smoorenburg <miquels@...tron.nl>,
	Linus Torvalds <torvalds@...l.org>
Subject: [PATCH] nanosecond filesystem support???


On 2/12/07, Andi Kleen <ak@...e.de> wrote:

> The bigger problem is getting a file system that support it.


Andi,

It seems that the part that's not returning nanosecond is in the code 
below. I've modified it, and now stat() is returning st_mtim.tv_nsec 
correctly.

I've tested it on ext2 and reiserfs, and both seems to be working.


I don't know why "t.tv_nsec = 0;" was set in the code. Any idea?



Thanks,
Jeff.


--- linux/kernel/time.c.org	2007-02-13 08:43:08 +0800
+++ linux/kernel/time.c	2007-02-13 08:52:29 +0800
@@ -86,7 +86,6 @@
  	if (get_user(tv.tv_sec, tptr))
  		return -EFAULT;

-	tv.tv_nsec = 0;

  	err = security_settime(&tv, NULL);
  	if (err)
@@ -269,7 +269,6 @@
  	if (gran <= jiffies_to_usecs(1) * 1000) {
  		/* nothing */
  	} else if (gran == 1000000000) {
-		t.tv_nsec = 0;
  	} else {
  		t.tv_nsec -= t.tv_nsec % gran;
  	}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ