Megjegyzés
Az oldalhoz való hozzáféréshez engedély szükséges. Megpróbálhat bejelentkezni vagy módosítani a címtárat.
Az oldalhoz való hozzáféréshez engedély szükséges. Megpróbálhatja módosítani a címtárat.
Use the blobfuse2 mount command to mount a Blob Storage container as a file system in Linux, or to display existing mount points.
Command Syntax
A blobfuse2 mount parancs 2 formátumot tartalmaz:
blobfuse2 mount [path] --[flag-name]=[flag-value]
blobfuse2 mount [command] --[flag-name]=[flag-value]
Érvek
[path]
Specify a file path to the directory where the storage container will be mounted. Példa:
blobfuse2 mount ./mount_path ...
[command]
The supported subcommands for blobfuse2 mount are:
| Command | Leírás |
|---|---|
| all | Mounts all blob containers in a specified storage account |
| lista | Lists all BlobFuse2 mount points |
Select one of the command links in the table above to view the documentation for the individual subcommands, including the arguments and flags they support.
Jelzők (beállítások)
Egyes jelzők a szülőparancstól öröklődnek, blobfuse2míg mások csak a blobfuse2 mount parancsra vonatkoznak.
A BlobFuse2 parancstól örökölt jelzők
A következő jelölők öröklődnek a szülőparancsból blobfuse2:
| Zászló | Rövid verzió | Érték típusa | Alapértelmezett érték | Leírás |
|---|---|---|---|---|
| disable-version-check | boolean | false | Engedélyezi vagy letiltja a BlobFuse2 bináris fájlok automatikus verzióellenőrzését | |
| segítség | -h | nincs adat | nincs adat | Súgóinformációk a blobfuse2 parancshoz és alparancsokhoz |
Flags that apply only to the BlobFuse2 mount command
A következő jelzők csak a parancsra blobfuse2 mountvonatkoznak:
| Zászló | Érték típusa | Alapértelmezett érték | Leírás |
|---|---|---|---|
| allow-other | boolean | false | Allow other users to access this mount point |
| attr-cache-timeout | uint32 | 120 | Attribute cache timeout (in seconds) |
| attr-timeout | uint32 | Attribute timeout (in seconds) |
|
| konfigurációs fájl | szál | ./config.yaml | The path to the configuration file where the account credentials are provided. |
| tároló neve | szál | The name of the container to be mounted | |
| entry-timeout | uint32 | Entry timeout (in seconds) |
|
| file-cache-timeout | uint32 | 120 | File cache timeout (in seconds) |
| foreground | boolean | false | Whether the file system is mounted in foreground mode |
| log-file-path | szál | $HOME/.blobfuse2/blobfuse2.log | The path for log files |
| 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 (in seconds) |
|
| no-symlinks | boolean | false | Whether or not symlinks should be supported |
| jelszó | szál | Key to decrypt config file. Can also be specified by env-variable BLOBFUSE2_SECURE_CONFIG_PASSPHRASE The key length shall be 16 (AES-128), 24 (AES-192), or 32 (AES-256) bytes in length. |
|
| read-only | boolean | false | Mount the system in read only mode |
| secure-config | boolean | false | Encrypt auto generated config file for each container |
| tmp-path | szál | nincs adat | Configures the tmp location for the cache. (Configure the fastest disk (SSD or ramdisk) for best performance). |
Examples
Megjegyzés:
Az alábbi példák feltételezik, hogy már létrehozott egy konfigurációs fájlt az aktuális könyvtárban.
Mount an individual Azure Blob Storage container to a new directory using the settings from a configuration file, and with foreground mode disabled:
sudo mkdir bf2a sudo blobfuse2 mount ./bf2a --config-file=./config.yaml --foreground=falsesudo blobfuse2 mount listExample output
1 : /home/<user>/bf2aMount all Blob Storage containers in the storage account specified in the configuration file to the path specified in the command. (Each container will be a subdirectory under the directory specified):
sudo mkdir bf2allsudo blobfuse2 mount all ./bf2all --config-file=./config.yamlExample output
Mounting container : blobfuse2a to path : bf2all/blobfuse2a Mounting container : blobfuse2b to path : bf2all/blobfuse2bsudo blobfuse2 mount listExample output
1 : /home/<user>/bf2all/blobfuse2a 2 : /home/<user>/bf2all/blobfuse2bMount a fast storage device, then mount a Blob Storage container specifying the path to the mounted disk as the BlobFuse2 file caching location:
sudo mkdir /mnt/resource/blobfuse2tmp -p sudo chown <youruser> /mnt/resource/blobfuse2tmp sudo mkdir bf2a sudo blobfuse2 mount ./bf2a --config-file=./config.yaml --tmp-path=/mnt/resource/blobfuse2tmpblobfuse2 mount list1 : /home/<user>/bf2a/blobfuse2aMount a Blob Storage container in read-only mode and skipping the automatic BlobFuse2 version check:
sudo blobfuse2 mount ./mount_dir --config-file=./config.yaml --read-only --disable-version-check=trueMount a Blob Storage container using an existing configuration file, but override the container name (mounting another container in the same storage account):
sudo blobfuse2 mount ./mount_dir2 --config-file=./config.yaml --container-name=container2