Dela via


How to use the BlobFuse2 mount all command to mount all blob containers in a storage account as a Linux file system

Use the blobfuse2 mount all command to mount all blob containers in a storage account as a Linux file system. Each container will be mounted to a unique subdirectory under the path specified. The subdirectory names will correspond to the container names.

Syntax

blobfuse2 mount all [path] --[flag-name]=[flag-value]

Argumentpunkter

[path]

Specify a file path to the directory where all of the blob storage containers in the storage account will be mounted. Exempel:

blobfuse2 mount all ./mount_path ...

Flaggor (inställningar)

Flags that apply to blobfuse2 mount all are inherited from the parent commands, blobfuse2 and blobfuse2 mount.

Flaggor som ärvts från BlobFuse2-kommandot

Följande flaggor ärvs från kommandot grandparentblobfuse2:

Flag Kort version Värdetyp Standardvärde Beskrivning
inaktivera versionskontroll boolean falskt Aktiverar eller inaktiverar automatisk versionskontroll av BlobFuse2-binärfiler
help -h Inte tillämpligt Hjälpinformation för blobfuse2-kommandot och underkommandon

Flags inherited from the BlobFuse2 mount command

Följande flaggor ärvs från det överordnade kommandot blobfuse2 mount:

Flag Värdetyp Standardvärde Beskrivning
allow-other boolean falskt Tillåt andra användare att komma åt den här monteringspunkten
attr-cache-timeout uint32 120 Tidsgräns för attributcache
(i sekunder)
attr-timeout uint32 Attribute timeout
(i sekunder)
konfigurationsfil sträng ./config.yaml The path for the file where the account credentials are provided Default is config.yaml in current directory.
containernamn sträng Namnet på containern som ska monteras
entry-timeout uint32 Tidsgräns för inmatning
(i sekunder)
file-cache-timeout uint32 120 Tidsgräns för filcache
(i sekunder)
foreground boolean falskt Om filsystemet är monterat i förgrundsläge
log-file-path sträng $HOME/.blobfuse2/blobfuse2.log Sökvägen för loggfiler
log-level LOG_OFF
LOG_CRIT
LOG_ERR
LOG_WARNING
LOG_INFO
LOG_DEBUG
LOG_WARNING
LOG_WARNING The level of logging written to --log-file-path.
negative-timeout uint32 The negative entry timeout
(i sekunder)
inga symlänkar boolean falskt Om symlänkar ska stödjas eller inte
passphrase sträng Nyckel för att dekryptera konfigurationsfilen.
Can also be specified by env-variable BLOBFUSE2_SECURE_CONFIG_PASSPHRASE
Nyckellängden ska vara 16 (AES-128), 24 (AES-192) eller 32 (AES-256) byte i längd.
read-only boolean falskt Mount the system in read only mode
secure-config boolean falskt Kryptera autogenererad konfigurationsfil för varje container
tmp-path sträng Inte tillämpligt Konfigurerar tmp-platsen för cachen.
(Konfigurera den snabbaste disken (SSD eller ramdisk) för bästa prestanda).

Exempel

Anmärkning

Följande exempel förutsätter att du redan har skapat en konfigurationsfil i den aktuella katalogen.

Mount all blob storage containers in the storage account specified in the configuration file to the path specified in the command. (Varje container är en underkatalog under den angivna katalogen):

sudo mkdir bf2all
sudo blobfuse2 mount all ./bf2all --config-file=./config.yaml

Example Output

Mounting container : blobfuse2a to path : bf2all/blobfuse2a
Mounting container : blobfuse2b to path : bf2all/blobfuse2b
sudo blobfuse2 mount list

Exempel på utdata

1 : /home/<user>/bf2all/blobfuse2a
2 : /home/<user>/bf2all/blobfuse2b

Se även