From bf49cad662fee8d91ec80f94fd0860d9f4178f53 Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Tue, 27 Jan 2015 14:02:52 -0800 Subject: [PATCH] Update modtime on WriteAt for inmemory driver Signed-off-by: Ahmet Alp Balkan --- storagedriver/inmemory/mfs.go | 1 + 1 file changed, 1 insertion(+) diff --git a/storagedriver/inmemory/mfs.go b/storagedriver/inmemory/mfs.go index 6ff35db9..2bf859bc 100644 --- a/storagedriver/inmemory/mfs.go +++ b/storagedriver/inmemory/mfs.go @@ -299,6 +299,7 @@ func (f *file) WriteAt(p []byte, offset int64) (n int, err error) { f.data = data } + f.mod = time.Now() f.data = f.data[:off+len(p)] return copy(f.data[off:off+len(p)], p), nil