cubefs/autofs
slasher 5c7898354f style(all): format all codes with golangci tools
closes #3371

@formatter:off

Signed-off-by: slasher <shenjie1@oppo.com>
2024-05-14 09:54:13 +08:00
..
cfs_test.go style(all): format all codes with golangci tools 2024-05-14 09:54:13 +08:00
cfs.go style(all): format all codes with golangci tools 2024-05-14 09:54:13 +08:00
go.mod enhance: add an automount tool for cubefs 2023-04-15 21:55:28 +08:00
go.sum enhance: add an automount tool for cubefs 2023-04-15 21:55:28 +08:00
main.go style(all): format all codes with golangci tools 2024-05-14 09:54:13 +08:00
README.md fix(cfsauto): fix build time for -V option 2023-05-26 15:19:42 +08:00
util.go chore(format): format all code with gofumpt 2024-01-12 14:21:16 +08:00

cfsauto

automount tool for cubefs

build

go build -v -ldflags="-X main.buildVersion=1.1 -X 'main.buildDate=$(date '+%Y-%m-%d %H:%M:%S')'" -o /usr/local/bin

quick start

mount

cfsauto mountpoint -o options mount -t fuse cfsauto mountpoint -o options

show mounts

cfsauto

version

cfsauto -V

example:

Version: 1.1, BuildDate: 2023-05-18 15:08:00

LDAP automount example

automountkey=cubefs-test

automountInformation=-fstype=fuse,subdir=test/sub,volName=projectA,owner=1234567,accessKey=abcdxxxefg,secretKey=uvwxxxxyz,masterAddr=10.0.0.1:17010,logDir=/var/logs/cfs/log,enablePosixACL,logLevel=debug :cfsauto

releases

  • v1.1: support all options of cfs-client v3.2