Skip to content

Commit

Permalink
Synchronous changes from the master branch
Browse files Browse the repository at this point in the history
Signed-off-by: Mofei Zhang <[email protected]>
  • Loading branch information
mervinkid committed Jan 19, 2020
2 parents d108d93 + e0b25a6 commit 6eba8cb
Show file tree
Hide file tree
Showing 4 changed files with 159 additions and 150 deletions.
1 change: 1 addition & 0 deletions client/fuse.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ func main() {

fsConn, super, err := mount(opt)
if err != nil {
syslog.Println("mount err", err)
log.LogFlush()
daemonize.SignalOutcome(err)
os.Exit(1)
Expand Down
2 changes: 1 addition & 1 deletion objectnode/fs_volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,7 @@ func (v *volume) CopyFile(targetPath, sourcePath string) (info *FSFileInfo, err
newDirs, newFilename := splitPath(targetPath)
// process source targetPath
var newParentId uint64
if newParentId, err = v.lookupDirectories(newDirs, false); err != nil {
if newParentId, err = v.lookupDirectories(newDirs, true); err != nil {
return nil, err
}

Expand Down
20 changes: 11 additions & 9 deletions objectnode/policy_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,17 @@ const (
GetObjectAclAction = "s3:GetObjectAcl"
GetObjectVersionAction = "s3:GetObjectVersion"
PutObjectVersionAction = "s3:PutObjectVersion"
GetObjectTorrentAction = "s3:GetObjectTorrent"
PutObjectTorrentAction = "s3:PutObjectTorrent"
PutObjectAclAction = "s3:PutObjectAcl"
GetObjectVersionAclAction = "s3:GetObjectVersionAcl"
PutObjectVersionAclAction = "s3:PutObjectVersionAcl"
DeleteBucketPolicyAction = "s3:DeleteBucketPolicy"
ListMultipartUploadPartsAction = "s3:ListMultipartUploadParts"
AbortMultipartUploadAction = "s3:AbortMultipartUpload"
GetBucketLocationAction = "s3:GetBucketLocation"
GetObjectTorrentAction = "s3:GetObjectTorrent"
PutObjectTorrentAction = "s3:PutObjectTorrent"
PutObjectAclAction = "s3:PutObjectAcl"
GetObjectVersionAclAction = "s3:GetObjectVersionAcl"
PutObjectVersionAclAction = "s3:PutObjectVersionAcl"
DeleteBucketPolicyAction = "s3:DeleteBucketPolicy"
ListMultipartUploadPartsAction = "s3:ListMultipartUploadParts"
AbortMultipartUploadAction = "s3:AbortMultipartUpload"
GetBucketLocationAction = "s3:GetBucketLocation"
PutObjectAttrAction = "s3:PutObjectAttr"
PutObjectTaggingAction = "s3:PutObjectTagging"
)

func (s Statement) checkActions(p *RequestParam) bool {
Expand Down
Loading

0 comments on commit 6eba8cb

Please sign in to comment.