Check if mapped in vitastor-nbd unmap

This commit is contained in:
Vitaliy Filippov
2025-02-21 01:28:06 +03:00
parent 125dcafb11
commit 5ee4894fab
3 changed files with 22 additions and 7 deletions
+3 -1
View File
@@ -61,9 +61,11 @@ in `/etc/vitastor/vitastor.conf` or in other configuration file specified with `
To unmap the device run:
```
vitastor-nbd unmap /dev/nbd0
vitastor-nbd unmap [--force] /dev/nbd0
```
If `--force` is specified, `vitastor-nbd` doesn't check if the device is actually mapped.
## ls
```
+4 -1
View File
@@ -69,9 +69,12 @@ vitastor-nbd поддерживает все обычные опции Vitastor,
Для отключения устройства выполните:
```
vitastor-nbd unmap /dev/nbd0
vitastor-nbd unmap [--force] /dev/nbd0
```
Если задана опция `--force`, `vitastor-nbd` не проверяет, подключено ли устройство,
перед попыткой его отключить.
## ls
```