@@ -28,7 +28,6 @@ import (
2828 "syscall"
2929 "time"
3030
31- "github.com/jacobsa/fuse"
3231 uuid "github.com/satori/go.uuid"
3332 "github.com/sirupsen/logrus"
3433
@@ -355,7 +354,7 @@ func (b *ADLv1) ListBlobs(param *ListBlobsInput) (*ListBlobsOutput, error) {
355354
356355 _ , prefixes , items , err := b .appendToListResults (NilStr (param .Prefix ),
357356 recursive , NilStr (continuationToken ), param .MaxKeys , nil , nil )
358- if err == fuse .ENOENT {
357+ if err == syscall .ENOENT {
359358 err = nil
360359 } else if err != nil {
361360 return nil , err
@@ -375,7 +374,7 @@ func (b *ADLv1) DeleteBlob(param *DeleteBlobInput) (*DeleteBlobOutput, error) {
375374 return nil , err
376375 }
377376 if ! * res .OperationResult {
378- return nil , fuse .ENOENT
377+ return nil , syscall .ENOENT
379378 }
380379 return & DeleteBlobOutput {}, nil
381380}
@@ -417,7 +416,7 @@ func (b *ADLv1) RenameBlob(param *RenameBlobInput) (*RenameBlobOutput, error) {
417416 // (the reverse, renaming a file to a directory works
418417 // in ADLv1 and is the same as moving the file into
419418 // the directory)
420- return nil , fuse .ENOENT
419+ return nil , syscall .ENOENT
421420 }
422421
423422 return & RenameBlobOutput {}, nil
@@ -556,7 +555,7 @@ func (b *ADLv1) uploadPart(param *MultipartBlobAddInput, offset uint64) error {
556555 // created. The behavior is odd: seems
557556 // like the first stream will error
558557 // but the latter stream works fine
559- err = fuse .EINVAL
558+ err = syscall .EINVAL
560559 return err
561560 } else if adlErr .resp .StatusCode == 400 &&
562561 adlErr .RemoteException .Exception == "BadOffsetException" {
@@ -641,7 +640,7 @@ func (b *ADLv1) MultipartBlobCommit(param *MultipartBlobCommitInput) (*Multipart
641640 & ReadSeekerCloser {bytes .NewReader ([]byte ("" ))}, PInt64 (int64 (commitData .Size )),
642641 adl .CLOSE , & leaseId , & leaseId )
643642 err = mapADLv1Error (res .Response , err , false )
644- if err == fuse .ENOENT {
643+ if err == syscall .ENOENT {
645644 // either the blob was concurrently deleted or we got
646645 // another CREATE which broke our lease. Either way
647646 // technically we did finish uploading data so swallow
@@ -661,7 +660,7 @@ func (b *ADLv1) MultipartExpire(param *MultipartExpireInput) (*MultipartExpireOu
661660
662661func (b * ADLv1 ) RemoveBucket (param * RemoveBucketInput ) (* RemoveBucketOutput , error ) {
663662 if b .bucket == "" {
664- return nil , fuse .EINVAL
663+ return nil , syscall .EINVAL
665664 }
666665
667666 res , err := b .client .Delete (context .TODO (), b .account , b .path ("" ), PBool (false ))
@@ -670,15 +669,15 @@ func (b *ADLv1) RemoveBucket(param *RemoveBucketInput) (*RemoveBucketOutput, err
670669 return nil , err
671670 }
672671 if ! * res .OperationResult {
673- return nil , fuse .ENOENT
672+ return nil , syscall .ENOENT
674673 }
675674
676675 return & RemoveBucketOutput {}, nil
677676}
678677
679678func (b * ADLv1 ) MakeBucket (param * MakeBucketInput ) (* MakeBucketOutput , error ) {
680679 if b .bucket == "" {
681- return nil , fuse .EINVAL
680+ return nil , syscall .EINVAL
682681 }
683682
684683 err := b .mkdir ("" )
@@ -697,7 +696,7 @@ func (b *ADLv1) mkdir(dir string) error {
697696 return err
698697 }
699698 if ! * res .OperationResult {
700- return fuse .EEXIST
699+ return syscall .EEXIST
701700 }
702701 return nil
703702}
0 commit comments