From 7e1aad0b54bd3d6d1bc2bd8940aeeaf7186bcfa4 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 3 Sep 2020 00:07:22 -0700 Subject: mount: map uid/gid between local and filer --- weed/filesys/filehandle.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'weed/filesys/filehandle.go') diff --git a/weed/filesys/filehandle.go b/weed/filesys/filehandle.go index 195d8ae8d..660bbf076 100644 --- a/weed/filesys/filehandle.go +++ b/weed/filesys/filehandle.go @@ -265,6 +265,9 @@ func (fh *FileHandle) doFlush(ctx context.Context, header fuse.Header) error { fh.f.entry.Chunks = append(chunks, manifestChunks...) fh.f.entryViewCache = nil + fh.f.wfs.mapPbIdFromLocalToFiler(request.Entry) + defer fh.f.wfs.mapPbIdFromFilerToLocal(request.Entry) + if err := filer_pb.CreateEntry(client, request); err != nil { glog.Errorf("fh flush create %s: %v", fh.f.fullpath(), err) return fmt.Errorf("fh flush create %s: %v", fh.f.fullpath(), err) -- cgit v1.2.3