login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
19
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapped files
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Matt Mackall <mpm@...>
To: Miklos Szeredi <miklos@...>
Cc: <riel@...>, <torvalds@...>, <ioe-lkml@...>, <peterz@...>, <salikhmetov@...>, <linux-mm@...>, <jakob@...>, <linux-kernel@...>, <valdis.kletnieks@...>, <ksm@...>, <staubach@...>, <jesper.juhl@...>, <akpm@...>, <protasnb@...>, <r.e.wolff@...>, <hidave.darkstar@...>, <hch@...>
Subject:
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapped files
Date: Saturday, January 19, 2008 - 11:49 am
On Sat, 2008-01-19 at 11:22 +0100, Miklos Szeredi wrote:
quoted text
> > Reminds me, I've got a patch here for addressing that problem with loop mounts: > > > > Writes to loop should update the mtime of the underlying file. > > > > Signed-off-by: Matt Mackall <mpm@selenic.com> > > > > Index: l/drivers/block/loop.c > > =================================================================== > > --- l.orig/drivers/block/loop.c 2007-11-05 17:50:07.000000000 -0600 > > +++ l/drivers/block/loop.c 2007-11-05 19:03:51.000000000 -0600 > > @@ -221,6 +221,7 @@ static int do_lo_send_aops(struct loop_d > > offset = pos & ((pgoff_t)PAGE_CACHE_SIZE - 1); > > bv_offs = bvec->bv_offset; > > len = bvec->bv_len; > > + file_update_time(file); > > while (len > 0) { > > sector_t IV; > > unsigned size; > > @@ -299,6 +300,7 @@ static int __do_lo_send_write(struct fil > > > > set_fs(get_ds()); > > bw = file->f_op->write(file, buf, len, &pos); > > + file_update_time(file); > > ->write should have already updated the times, no?
Yes, this second case is redundant. Still needed in the first case. -- Mathematics is the supreme nostalgia of our time. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH -v6 0/2] Fixing the issue with memory-mapped file times
, Anton Salikhmetov
, (Thu Jan 17, 6:31 pm)
Re: [PATCH -v6 0/2] Fixing the issue with memory-mapped file...
, Miklos Szeredi
, (Fri Jan 18, 5:40 am)
Re: [PATCH -v6 0/2] Fixing the issue with memory-mapped file...
, Anton Salikhmetov
, (Fri Jan 18, 3:48 pm)
Re: [PATCH -v6 0/2] Fixing the issue with memory-mapped file...
, Miklos Szeredi
, (Sat Jan 19, 6:45 am)
Re: [PATCH -v6 0/2] Fixing the issue with memory-mapped file...
, Anton Salikhmetov
, (Fri Jan 18, 6:31 am)
[PATCH -v6 2/2] Updating ctime and mtime for memory-mapped f...
, Anton Salikhmetov
, (Thu Jan 17, 6:31 pm)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Miklos Szeredi
, (Fri Jan 18, 5:51 am)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Peter Zijlstra
, (Fri Jan 18, 6:15 am)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Miklos Szeredi
, (Fri Jan 18, 6:38 am)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Peter Zijlstra
, (Fri Jan 18, 7:00 am)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Miklos Szeredi
, (Fri Jan 18, 7:17 am)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Peter Zijlstra
, (Fri Jan 18, 7:23 am)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Miklos Szeredi
, (Fri Jan 18, 7:36 am)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Peter Zijlstra
, (Fri Jan 18, 6:25 am)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Linus Torvalds
, (Fri Jan 18, 1:58 pm)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Miklos Szeredi
, (Fri Jan 18, 2:11 pm)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Linus Torvalds
, (Fri Jan 18, 2:43 pm)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Miklos Szeredi
, (Fri Jan 18, 2:57 pm)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Linus Torvalds
, (Fri Jan 18, 3:08 pm)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Miklos Szeredi
, (Fri Jan 18, 3:22 pm)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Linus Torvalds
, (Fri Jan 18, 3:35 pm)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Ingo Oeser
, (Fri Jan 18, 6:32 pm)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Linus Torvalds
, (Fri Jan 18, 6:47 pm)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Peter Staubach
, (Mon Jan 21, 10:25 am)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Anton Salikhmetov
, (Mon Jan 21, 10:36 am)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Rik van Riel
, (Fri Jan 18, 6:54 pm)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Matt Mackall
, (Fri Jan 18, 8:50 pm)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Miklos Szeredi
, (Sat Jan 19, 6:22 am)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Matt Mackall
, (Sat Jan 19, 11:49 am)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Rik van Riel
, (Sat Jan 19, 12:25 am)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Anton Salikhmetov
, (Fri Jan 18, 3:58 pm)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Linus Torvalds
, (Fri Jan 18, 4:22 pm)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Anton Salikhmetov
, (Fri Jan 18, 5:03 pm)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Linus Torvalds
, (Fri Jan 18, 5:27 pm)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Anton Salikhmetov
, (Fri Jan 18, 6:04 pm)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Linus Torvalds
, (Fri Jan 18, 6:21 pm)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Anton Salikhmetov
, (Fri Jan 18, 6:35 pm)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Rik van Riel
, (Fri Jan 18, 2:28 pm)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Miklos Szeredi
, (Fri Jan 18, 2:51 pm)
Re: [PATCH -v6 2/2] Updating ctime and mtime for memory-mapp...
, Anton Salikhmetov
, (Fri Jan 18, 6:39 am)
[PATCH -v6 1/2] Massive code cleanup of sys_msync()
, Anton Salikhmetov
, (Thu Jan 17, 6:31 pm)
Re: [PATCH -v6 1/2] Massive code cleanup of sys_msync()
, Miklos Szeredi
, (Fri Jan 18, 5:33 am)
Re: [PATCH -v6 1/2] Massive code cleanup of sys_msync()
, Anton Salikhmetov
, (Fri Jan 18, 6:30 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Linus Torvalds
Linux 2.6.21
Greg Kroah-Hartman
[PATCH 002/196] Chinese: rephrase English introduction in HOWTO
Josef 'Jeff' Sipek
[PATCH 02/24] lookup_one_len_nd - lookup_one_len with nameidata argument
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
Re: [GIT]: Networking
David Miller
[PATCH]: Preliminary release of Sun Neptune driver
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
575 guests
online.
Online users
geocoinproject
Syndicate