Commit 3febc81c authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 600167f7
......@@ -1207,15 +1207,7 @@ retry:
// ----------------------------------------
// /(head|<rev>)/at -> readAt serves read.
func (h *Head) readAt() []byte {
h.zconnMu.RLock()
defer h.zconnMu.RUnlock()
return []byte(h.zconn.At().String())
}
// ---- Lookup ----
// /(head|<rev>)/bigfile/ -> Lookup receives client request to create /(head|<rev>)/bigfile/<bigfileX>.
func (bfdir *BigFileDir) Lookup(out *fuse.Attr, name string, fctx *fuse.Context) (*nodefs.Inode, fuse.Status) {
......@@ -1445,6 +1437,16 @@ func (f *BigFile) Close() error {
return nil
}
// ---- misc ---
// /(head|<rev>)/at -> readAt serves read.
func (h *Head) readAt() []byte {
h.zconnMu.RLock()
defer h.zconnMu.RUnlock()
return []byte(h.zconn.At().String())
}
// /(head|<rev>)/ -> Getattr serves stat.
func (head *Head) GetAttr(out *fuse.Attr, _ nodefs.File, _ *fuse.Context) fuse.Status {
at := head.rev
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment