* Correcting module name

* Changing module name

* Adding output binary name in go build
This commit is contained in:
Sourav Gupta 2022-07-27 12:19:36 +05:30 коммит произвёл GitHub
Родитель 1566734ec3
Коммит 35cf5ff4a2
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
77 изменённых файлов: 257 добавлений и 194 удалений

Просмотреть файл

@ -32,7 +32,7 @@ steps:
- task: Go@0
inputs:
command: 'build'
arguments: "-tags ${{ parameters.tags }}"
arguments: "-tags ${{ parameters.tags }} -o blobfuse2"
workingDirectory: ${{ parameters.work_dir }}
displayName: 'Building Blobfuse2'

Просмотреть файл

@ -65,7 +65,7 @@ steps:
- task: Go@0
inputs:
command: 'build'
arguments: "-tags ${{ parameters.tags }}"
arguments: "-tags ${{ parameters.tags }} -o blobfuse2"
workingDirectory: ${{ parameters.working_directory }}
displayName: "Go Build"

Просмотреть файл

@ -53,7 +53,7 @@ jobs:
inputs:
command: 'build'
workingDirectory: ./
arguments: "-tags $(tags)"
arguments: "-tags $(tags) -o blobfuse2"
displayName: "Build"
- script: |

Просмотреть файл

@ -9,6 +9,6 @@ echo "" >> $loader_file
echo "import (" >> $loader_file
for i in $(find . -type d | grep "component/" | cut -c 3- | sort -u); do # Not recommended, will break on whitespace
echo " _ \"blobfuse2/$i\"" >> $loader_file
echo " _ \"github.com/Azure/azure-storage-fuse/v2/$i\"" >> $loader_file
done
echo ")" >> $loader_file

Просмотреть файл

@ -34,10 +34,10 @@
package cmd
import (
_ "blobfuse2/component/attr_cache"
_ "blobfuse2/component/azstorage"
_ "blobfuse2/component/file_cache"
_ "blobfuse2/component/libfuse"
_ "blobfuse2/component/loopback"
_ "blobfuse2/component/stream"
_ "github.com/Azure/azure-storage-fuse/v2/component/attr_cache"
_ "github.com/Azure/azure-storage-fuse/v2/component/azstorage"
_ "github.com/Azure/azure-storage-fuse/v2/component/file_cache"
_ "github.com/Azure/azure-storage-fuse/v2/component/libfuse"
_ "github.com/Azure/azure-storage-fuse/v2/component/loopback"
_ "github.com/Azure/azure-storage-fuse/v2/component/stream"
)

Просмотреть файл

@ -34,11 +34,6 @@
package cmd
import (
"blobfuse2/common"
"blobfuse2/common/config"
"blobfuse2/common/exectime"
"blobfuse2/common/log"
"blobfuse2/internal"
"context"
"fmt"
"io/ioutil"
@ -52,6 +47,12 @@ import (
"strings"
"syscall"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/config"
"github.com/Azure/azure-storage-fuse/v2/common/exectime"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-fuse/v2/internal"
"github.com/sevlyar/go-daemon"
"github.com/spf13/cobra"
)

Просмотреть файл

@ -34,9 +34,6 @@
package cmd
import (
"blobfuse2/common"
"blobfuse2/common/config"
"blobfuse2/common/log"
"context"
"fmt"
"io/ioutil"
@ -45,7 +42,11 @@ import (
"path/filepath"
"strings"
"blobfuse2/component/azstorage"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/config"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-fuse/v2/component/azstorage"
"github.com/spf13/cobra"
"github.com/spf13/viper"

Просмотреть файл

@ -34,9 +34,10 @@
package cmd
import (
"blobfuse2/common"
"fmt"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/spf13/cobra"
)

Просмотреть файл

@ -34,12 +34,6 @@
package cmd
import (
"blobfuse2/common"
"blobfuse2/common/config"
"blobfuse2/common/log"
"blobfuse2/component/azstorage"
"blobfuse2/component/file_cache"
"blobfuse2/component/libfuse"
"encoding/json"
"fmt"
"io/ioutil"
@ -47,6 +41,13 @@ import (
"os/exec"
"strings"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/config"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-fuse/v2/component/azstorage"
"github.com/Azure/azure-storage-fuse/v2/component/file_cache"
"github.com/Azure/azure-storage-fuse/v2/component/libfuse"
"github.com/spf13/cobra"
)

Просмотреть файл

@ -34,14 +34,15 @@
package cmd
import (
"blobfuse2/common"
"blobfuse2/common/config"
"blobfuse2/common/log"
"fmt"
"io/ioutil"
"os"
"testing"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/config"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"

Просмотреть файл

@ -34,11 +34,6 @@
package cmd
import (
"blobfuse2/component/attr_cache"
"blobfuse2/component/azstorage"
"blobfuse2/component/file_cache"
"blobfuse2/component/libfuse"
"blobfuse2/component/stream"
"bufio"
"bytes"
"errors"
@ -50,6 +45,12 @@ import (
"strconv"
"strings"
"github.com/Azure/azure-storage-fuse/v2/component/attr_cache"
"github.com/Azure/azure-storage-fuse/v2/component/azstorage"
"github.com/Azure/azure-storage-fuse/v2/component/file_cache"
"github.com/Azure/azure-storage-fuse/v2/component/libfuse"
"github.com/Azure/azure-storage-fuse/v2/component/stream"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"gopkg.in/yaml.v3"

Просмотреть файл

@ -34,13 +34,6 @@
package cmd
import (
"blobfuse2/common"
"blobfuse2/common/config"
"blobfuse2/common/log"
"blobfuse2/component/attr_cache"
"blobfuse2/component/azstorage"
"blobfuse2/component/file_cache"
"blobfuse2/component/stream"
"bytes"
"fmt"
"io/ioutil"
@ -49,6 +42,14 @@ import (
"testing"
"time"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/config"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-fuse/v2/component/attr_cache"
"github.com/Azure/azure-storage-fuse/v2/component/azstorage"
"github.com/Azure/azure-storage-fuse/v2/component/file_cache"
"github.com/Azure/azure-storage-fuse/v2/component/stream"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"

Просмотреть файл

@ -34,8 +34,6 @@
package cmd
import (
"blobfuse2/common"
"blobfuse2/common/log"
"encoding/xml"
"fmt"
"io/ioutil"
@ -44,6 +42,9 @@ import (
"strings"
"time"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/spf13/cobra"
)

Просмотреть файл

@ -34,13 +34,14 @@
package cmd
import (
"blobfuse2/common"
"errors"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/spf13/cobra"
)

Просмотреть файл

@ -34,12 +34,13 @@
package cmd
import (
"blobfuse2/common"
"errors"
"fmt"
"reflect"
"strings"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"gopkg.in/yaml.v2"

Просмотреть файл

@ -34,14 +34,15 @@
package cmd
import (
"blobfuse2/common"
"blobfuse2/common/log"
"bytes"
"fmt"
"io/ioutil"
"os"
"testing"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/stretchr/testify/assert"

Просмотреть файл

@ -34,12 +34,13 @@
package cmd
import (
"blobfuse2/common"
"fmt"
"os/exec"
"regexp"
"strings"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/spf13/cobra"
)

Просмотреть файл

@ -34,9 +34,10 @@
package cmd
import (
"blobfuse2/common"
"fmt"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/spf13/cobra"
)

Просмотреть файл

@ -34,9 +34,10 @@
package cmd
import (
"blobfuse2/common"
"fmt"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/spf13/cobra"
)

Просмотреть файл

@ -34,10 +34,11 @@
package cache_policy
import (
"blobfuse2/common"
"blobfuse2/common/log"
"container/list"
"sync"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/log"
)
//KeyPair: the list node containing both block key and cache block values

Просмотреть файл

@ -34,10 +34,11 @@
package cache_policy
import (
"blobfuse2/common"
"container/list"
"testing"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
)

Просмотреть файл

@ -34,8 +34,6 @@
package config
import (
"blobfuse2/common"
"blobfuse2/common/log"
"fmt"
"io"
"io/ioutil"
@ -43,6 +41,9 @@ import (
"strings"
"time"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/spf13/cobra"
"github.com/fsnotify/fsnotify"

Просмотреть файл

@ -34,7 +34,6 @@
package log
import (
"blobfuse2/common"
"fmt"
"io"
"log"
@ -43,6 +42,8 @@ import (
"runtime"
"sync"
"time"
"github.com/Azure/azure-storage-fuse/v2/common"
)
// LogConfig : Configuration to be provided to logging infra

Просмотреть файл

@ -34,11 +34,12 @@
package log
import (
"blobfuse2/common"
"errors"
"log"
"os"
"time"
"github.com/Azure/azure-storage-fuse/v2/common"
)
// Logger : Interface to define a generic Logger. Implement this to create your new logging lib

Просмотреть файл

@ -34,9 +34,10 @@
package log
import (
"blobfuse2/common"
"testing"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
)

Просмотреть файл

@ -34,8 +34,9 @@
package log
import (
"blobfuse2/common"
"log"
"github.com/Azure/azure-storage-fuse/v2/common"
)
type SilentLogger struct {

Просмотреть файл

@ -34,13 +34,14 @@
package log
import (
"blobfuse2/common"
"errors"
"fmt"
"log"
"log/syslog"
"path/filepath"
"runtime"
"github.com/Azure/azure-storage-fuse/v2/common"
)
type SysLogger struct {

Просмотреть файл

@ -34,10 +34,6 @@
package attr_cache
import (
"blobfuse2/common/config"
"blobfuse2/common/log"
"blobfuse2/internal"
"blobfuse2/internal/handlemap"
"context"
"fmt"
"os"
@ -45,6 +41,11 @@ import (
"sync"
"syscall"
"time"
"github.com/Azure/azure-storage-fuse/v2/common/config"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-fuse/v2/internal"
"github.com/Azure/azure-storage-fuse/v2/internal/handlemap"
)
// By default attr cache is valid for 120 seconds

Просмотреть файл

@ -34,11 +34,6 @@
package attr_cache
import (
"blobfuse2/common"
"blobfuse2/common/config"
"blobfuse2/common/log"
"blobfuse2/internal"
"blobfuse2/internal/handlemap"
"container/list"
"context"
"errors"
@ -51,6 +46,12 @@ import (
"testing"
"time"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/config"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-fuse/v2/internal"
"github.com/Azure/azure-storage-fuse/v2/internal/handlemap"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"

Просмотреть файл

@ -34,10 +34,11 @@
package attr_cache
import (
"blobfuse2/common"
"blobfuse2/internal"
"os"
"time"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/internal"
)
// Flags represented in BitMap for various flags in the attr cache item

Просмотреть файл

@ -34,7 +34,7 @@
package azstorage
import (
"blobfuse2/common/log"
"github.com/Azure/azure-storage-fuse/v2/common/log"
)
// AzAuthConfig : Config to authenticate to storage

Просмотреть файл

@ -35,14 +35,15 @@
package azstorage
import (
"blobfuse2/common"
"blobfuse2/common/log"
"encoding/json"
"fmt"
"io/ioutil"
"os"
"testing"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
)

Просмотреть файл

@ -34,7 +34,7 @@
package azstorage
import (
"blobfuse2/common/log"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-azcopy/v10/azbfs"
"github.com/Azure/azure-storage-blob-go/azblob"

Просмотреть файл

@ -34,9 +34,10 @@
package azstorage
import (
"blobfuse2/common/log"
"time"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-azcopy/v10/azbfs"
"github.com/Azure/azure-storage-blob-go/azblob"
"github.com/Azure/go-autorest/autorest/adal"

Просмотреть файл

@ -34,9 +34,10 @@
package azstorage
import (
"blobfuse2/common/log"
"fmt"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-azcopy/v10/azbfs"
"github.com/Azure/azure-storage-blob-go/azblob"
)

Просмотреть файл

@ -34,9 +34,10 @@
package azstorage
import (
"blobfuse2/common/log"
"time"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-azcopy/v10/azbfs"
"github.com/Azure/azure-storage-blob-go/azblob"
"github.com/Azure/go-autorest/autorest/adal"

Просмотреть файл

@ -34,17 +34,18 @@
package azstorage
import (
"blobfuse2/common"
"blobfuse2/common/config"
"blobfuse2/common/log"
"blobfuse2/internal"
"blobfuse2/internal/handlemap"
"context"
"fmt"
"sync/atomic"
"syscall"
"time"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/config"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-fuse/v2/internal"
"github.com/Azure/azure-storage-fuse/v2/internal/handlemap"
"github.com/spf13/cobra"
)

Просмотреть файл

@ -34,9 +34,6 @@
package azstorage
import (
"blobfuse2/common"
"blobfuse2/common/log"
"blobfuse2/internal"
"bytes"
"context"
"encoding/base64"
@ -49,6 +46,10 @@ import (
"syscall"
"time"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-fuse/v2/internal"
"github.com/Azure/azure-storage-blob-go/azblob"
)

Просмотреть файл

@ -35,11 +35,6 @@
package azstorage
import (
"blobfuse2/common"
"blobfuse2/common/config"
"blobfuse2/common/log"
"blobfuse2/internal"
"blobfuse2/internal/handlemap"
"bytes"
"container/list"
"context"
@ -58,6 +53,12 @@ import (
"testing"
"time"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/config"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-fuse/v2/internal"
"github.com/Azure/azure-storage-fuse/v2/internal/handlemap"
"github.com/Azure/azure-pipeline-go/pipeline"
"github.com/Azure/azure-storage-blob-go/azblob"
"github.com/stretchr/testify/assert"

Просмотреть файл

@ -34,12 +34,13 @@
package azstorage
import (
"blobfuse2/common/config"
"blobfuse2/common/log"
"errors"
"reflect"
"strings"
"github.com/Azure/azure-storage-fuse/v2/common/config"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-blob-go/azblob"
"github.com/JeffreyRichter/enum/enum"
)

Просмотреть файл

@ -34,12 +34,13 @@
package azstorage
import (
"blobfuse2/common"
"blobfuse2/common/log"
"blobfuse2/internal"
"net/url"
"os"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-fuse/v2/internal"
"github.com/Azure/azure-pipeline-go/pipeline"
"github.com/Azure/azure-storage-blob-go/azblob"
)

Просмотреть файл

@ -34,9 +34,6 @@
package azstorage
import (
"blobfuse2/common"
"blobfuse2/common/log"
"blobfuse2/internal"
"context"
"errors"
"net/url"
@ -46,6 +43,10 @@ import (
"syscall"
"time"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-fuse/v2/internal"
"github.com/Azure/azure-storage-azcopy/v10/azbfs"
)

Просмотреть файл

@ -35,10 +35,6 @@
package azstorage
import (
"blobfuse2/common"
"blobfuse2/common/log"
"blobfuse2/internal"
"blobfuse2/internal/handlemap"
"bytes"
"container/list"
"encoding/json"
@ -50,6 +46,11 @@ import (
"testing"
"time"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-fuse/v2/internal"
"github.com/Azure/azure-storage-fuse/v2/internal/handlemap"
"github.com/Azure/azure-storage-azcopy/v10/azbfs"
"github.com/Azure/azure-storage-blob-go/azblob"
"github.com/stretchr/testify/assert"

Просмотреть файл

@ -34,9 +34,6 @@
package azstorage
import (
"blobfuse2/common"
"blobfuse2/common/log"
"blobfuse2/internal"
"context"
"encoding/base64"
"encoding/json"
@ -49,6 +46,10 @@ import (
"strings"
"time"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-fuse/v2/internal"
"github.com/Azure/azure-storage-azcopy/v10/azbfs"
"github.com/Azure/azure-pipeline-go/pipeline"

Просмотреть файл

@ -34,13 +34,14 @@
package file_cache
import (
"blobfuse2/common"
"blobfuse2/common/log"
"bytes"
"os"
"os/exec"
"strconv"
"strings"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/log"
)
const DefaultEvictTime = 10

Просмотреть файл

@ -34,13 +34,14 @@
package file_cache
import (
"blobfuse2/common"
"blobfuse2/common/log"
"io/fs"
"math"
"os"
"testing"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
)

Просмотреть файл

@ -34,11 +34,6 @@
package file_cache
import (
"blobfuse2/common"
"blobfuse2/common/config"
"blobfuse2/common/log"
"blobfuse2/internal"
"blobfuse2/internal/handlemap"
"context"
"fmt"
"io"
@ -51,6 +46,12 @@ import (
"syscall"
"time"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/config"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-fuse/v2/internal"
"github.com/Azure/azure-storage-fuse/v2/internal/handlemap"
"github.com/spf13/cobra"
)

Просмотреть файл

@ -34,12 +34,6 @@
package file_cache
import (
"blobfuse2/common"
"blobfuse2/common/config"
"blobfuse2/common/log"
"blobfuse2/component/loopback"
"blobfuse2/internal"
"blobfuse2/internal/handlemap"
"context"
"fmt"
"math/rand"
@ -50,6 +44,13 @@ import (
"testing"
"time"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/config"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-fuse/v2/component/loopback"
"github.com/Azure/azure-storage-fuse/v2/internal"
"github.com/Azure/azure-storage-fuse/v2/internal/handlemap"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
)

Просмотреть файл

@ -34,10 +34,11 @@
package file_cache
import (
"blobfuse2/common/log"
"strings"
"sync"
"time"
"github.com/Azure/azure-storage-fuse/v2/common/log"
)
type lfuPolicy struct {

Просмотреть файл

@ -34,8 +34,6 @@
package file_cache
import (
"blobfuse2/common"
"blobfuse2/common/log"
"fmt"
"io/fs"
"os"
@ -43,6 +41,9 @@ import (
"testing"
"time"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
)

Просмотреть файл

@ -34,10 +34,11 @@
package file_cache
import (
"blobfuse2/common/log"
"strings"
"sync"
"time"
"github.com/Azure/azure-storage-fuse/v2/common/log"
)
type lruNode struct {

Просмотреть файл

@ -34,13 +34,14 @@
package file_cache
import (
"blobfuse2/common"
"fmt"
"io/fs"
"os"
"testing"
"time"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
)

Просмотреть файл

@ -34,12 +34,13 @@
package libfuse
import (
"blobfuse2/common"
"blobfuse2/common/config"
"blobfuse2/common/log"
"blobfuse2/internal"
"context"
"fmt"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/config"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-fuse/v2/internal"
)
/* NOTES:

Просмотреть файл

@ -44,12 +44,12 @@ package libfuse
// #include "extension_handler.h"
import "C"
import (
"blobfuse2/common"
"blobfuse2/common/log"
"blobfuse2/internal"
"blobfuse2/internal/handlemap"
"errors"
"fmt"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-fuse/v2/internal"
"github.com/Azure/azure-storage-fuse/v2/internal/handlemap"
"io"
"io/fs"
"os"

Просмотреть файл

@ -40,12 +40,12 @@ package libfuse
// #include "libfuse_wrapper.h"
import "C"
import (
"blobfuse2/common"
"blobfuse2/common/config"
"blobfuse2/common/log"
"blobfuse2/internal"
"blobfuse2/internal/handlemap"
"errors"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/config"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-fuse/v2/internal"
"github.com/Azure/azure-storage-fuse/v2/internal/handlemap"
"io/fs"
"strings"
"syscall"

Просмотреть файл

@ -44,10 +44,6 @@ package libfuse
// #include "extension_handler.h"
import "C"
import (
"blobfuse2/common"
"blobfuse2/common/log"
"blobfuse2/internal"
"blobfuse2/internal/handlemap"
"errors"
"fmt"
"io"
@ -55,6 +51,11 @@ import (
"os"
"syscall"
"unsafe"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-fuse/v2/internal"
"github.com/Azure/azure-storage-fuse/v2/internal/handlemap"
)
/* --- IMPORTANT NOTE ---

Просмотреть файл

@ -34,10 +34,11 @@
package libfuse
import (
"blobfuse2/common"
"io/fs"
"testing"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/stretchr/testify/suite"
)

Просмотреть файл

@ -40,17 +40,18 @@ package libfuse
// #include "libfuse_wrapper.h"
import "C"
import (
"blobfuse2/common"
"blobfuse2/common/config"
"blobfuse2/common/log"
"blobfuse2/internal"
"blobfuse2/internal/handlemap"
"errors"
"io/fs"
"strings"
"syscall"
"unsafe"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/config"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-fuse/v2/internal"
"github.com/Azure/azure-storage-fuse/v2/internal/handlemap"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"

Просмотреть файл

@ -34,10 +34,6 @@
package loopback
import (
"blobfuse2/common/config"
"blobfuse2/common/log"
"blobfuse2/internal"
"blobfuse2/internal/handlemap"
"context"
"fmt"
"io"
@ -46,6 +42,11 @@ import (
"path/filepath"
"strings"
"syscall"
"github.com/Azure/azure-storage-fuse/v2/common/config"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-fuse/v2/internal"
"github.com/Azure/azure-storage-fuse/v2/internal/handlemap"
)
//LoopbackFS component Config specifications:

Просмотреть файл

@ -34,13 +34,14 @@
package loopback
import (
"blobfuse2/internal"
"context"
"fmt"
"os"
"path/filepath"
"testing"
"github.com/Azure/azure-storage-fuse/v2/internal"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
)

Просмотреть файл

@ -34,8 +34,8 @@
package stream
import (
"blobfuse2/internal"
"blobfuse2/internal/handlemap"
"github.com/Azure/azure-storage-fuse/v2/internal"
"github.com/Azure/azure-storage-fuse/v2/internal/handlemap"
)
type StreamConnection interface {

Просмотреть файл

@ -34,13 +34,14 @@
package stream
import (
"blobfuse2/common"
"blobfuse2/common/log"
"blobfuse2/internal"
"blobfuse2/internal/handlemap"
"io"
"sync/atomic"
"syscall"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-fuse/v2/internal"
"github.com/Azure/azure-storage-fuse/v2/internal/handlemap"
)
type ReadCache struct {

Просмотреть файл

@ -33,11 +33,6 @@
package stream
import (
"blobfuse2/common"
"blobfuse2/common/config"
"blobfuse2/common/log"
"blobfuse2/internal"
"blobfuse2/internal/handlemap"
"context"
"crypto/rand"
"os"
@ -47,6 +42,12 @@ import (
"testing"
"time"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/config"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-fuse/v2/internal"
"github.com/Azure/azure-storage-fuse/v2/internal/handlemap"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"

Просмотреть файл

@ -34,15 +34,16 @@
package stream
import (
"blobfuse2/common"
"blobfuse2/common/log"
"blobfuse2/internal"
"blobfuse2/internal/handlemap"
"encoding/base64"
"errors"
"io"
"sync/atomic"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-fuse/v2/internal"
"github.com/Azure/azure-storage-fuse/v2/internal/handlemap"
"github.com/pbnjay/memory"
)

Просмотреть файл

@ -34,12 +34,13 @@
package stream
import (
"blobfuse2/common"
"blobfuse2/internal"
"blobfuse2/internal/handlemap"
"os"
"testing"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/internal"
"github.com/Azure/azure-storage-fuse/v2/internal/handlemap"
"github.com/stretchr/testify/suite"
)

Просмотреть файл

@ -34,14 +34,15 @@
package stream
import (
"blobfuse2/common/config"
"blobfuse2/common/log"
"blobfuse2/internal"
"blobfuse2/internal/handlemap"
"context"
"errors"
"fmt"
"github.com/Azure/azure-storage-fuse/v2/common/config"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-fuse/v2/internal"
"github.com/Azure/azure-storage-fuse/v2/internal/handlemap"
"github.com/pbnjay/memory"
)

2
go.mod
Просмотреть файл

@ -1,4 +1,4 @@
module blobfuse2
module github.com/Azure/azure-storage-fuse/v2
go 1.16

Просмотреть файл

@ -34,9 +34,10 @@
package internal
import (
"blobfuse2/common"
"os"
"time"
"github.com/Azure/azure-storage-fuse/v2/common"
)
func NewDirBitMap() common.BitMap16 {

Просмотреть файл

@ -34,10 +34,11 @@
package internal
import (
"blobfuse2/common"
"blobfuse2/internal/handlemap"
"context"
"syscall"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/internal/handlemap"
)
// BaseComponent : Base implementation of the component interface

Просмотреть файл

@ -34,10 +34,11 @@
package internal
import (
"blobfuse2/common"
"blobfuse2/internal/handlemap"
"context"
"syscall"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/internal/handlemap"
)
type ComponentPriority int

Просмотреть файл

@ -34,9 +34,9 @@
package <component>
import (
"blobfuse2/common/config"
"blobfuse2/common/log"
"blobfuse2/internal"
"github.com/Azure/azure-storage-fuse/v2/common/config"
"github.com/Azure/azure-storage-fuse/v2/common/log"
"github.com/Azure/azure-storage-fuse/v2/internal"
"context"
"fmt"
)

Просмотреть файл

@ -34,8 +34,9 @@
package internal
import (
"blobfuse2/internal/handlemap"
"os"
"github.com/Azure/azure-storage-fuse/v2/internal/handlemap"
)
type CreateDirOptions struct {

Просмотреть файл

@ -34,11 +34,12 @@
package handlemap
import (
"blobfuse2/common"
"blobfuse2/common/cache_policy"
"os"
"sync"
"github.com/Azure/azure-storage-fuse/v2/common"
"github.com/Azure/azure-storage-fuse/v2/common/cache_policy"
"go.uber.org/atomic"
)

Просмотреть файл

@ -38,8 +38,8 @@
package internal
import (
common "blobfuse2/common"
handlemap "blobfuse2/internal/handlemap"
common "github.com/Azure/azure-storage-fuse/v2/common"
handlemap "github.com/Azure/azure-storage-fuse/v2/internal/handlemap"
context "context"
reflect "reflect"
"syscall"

Просмотреть файл

@ -34,9 +34,10 @@
package internal
import (
"blobfuse2/common/log"
"context"
"fmt"
"github.com/Azure/azure-storage-fuse/v2/common/log"
)
// Pipeline: Base pipeline structure holding list of components deployed along with the head of pipeline

Просмотреть файл

@ -34,8 +34,8 @@
package main
import (
"blobfuse2/cmd"
_ "blobfuse2/common/log"
"github.com/Azure/azure-storage-fuse/v2/cmd"
_ "github.com/Azure/azure-storage-fuse/v2/common/log"
)
//go:generate ./cmd/componentGenerator.sh $NAME

Просмотреть файл

@ -34,8 +34,9 @@
package test
import (
statc "blobfuse2/common/stats_collector"
"sync"
statc "github.com/Azure/azure-storage-fuse/v2/common/stats_collector"
)
func main() {