Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lockfile fixes for LibreOffice #84

Merged
merged 11 commits into from
Jun 5, 2020
Prev Previous commit
Next Next commit
fix unset drivetype in tests
  • Loading branch information
jstaf committed Jun 5, 2020
commit 37879f8daef9a0f06276ed0024de73a92b8123ab
6 changes: 5 additions & 1 deletion fs/inode.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,12 @@ type SerializeableInode struct {
func NewInode(name string, mode uint32, parent *Inode) *Inode {
itemParent := &graph.DriveItemParent{ID: "", Path: ""}
if parent != nil {
itemParent.ID = parent.ID()
itemParent.Path = parent.Path()
parent.mutex.RLock()
itemParent.ID = parent.DriveItem.ID
itemParent.DriveID = parent.DriveItem.Parent.DriveID
itemParent.DriveType = parent.DriveItem.Parent.DriveType
parent.mutex.RUnlock()
}

var empty []byte
Expand Down