Exemplo n.º 1
0
//func (o OpenfileHandle)
func (o openFileHandle) Flush(request *fuse.FlushRequest, intr fs.Intr) fuse.Error {
	log.Printf("Request: %+v\nHandle Information:\n%+v", request, o)
	if o.parent.openHandles[o.name].publish == true && o.publish == true {
		o.Publish()
		o.parent.openHandles[o.name].publish = false //Prevent multiple publishes
	}
	request.Respond()
	return nil
}
Exemplo n.º 2
0
func (f *fs) handleFlush(r *fuse.FlushRequest) {
	log.Println("Inside handleFlush")
	r.Respond()
}