[Why] when test fio with write mode, an error is reported: fio: /dev/sda appears mounted, and 'allow_mounted_write' isn't set. [How] add allow_mounted_write when write mode
Signed-off-by: Wei Jihui weijihuiall@163.com --- setup/fio-setup-basic | 1 + 1 file changed, 1 insertion(+)
diff --git a/setup/fio-setup-basic b/setup/fio-setup-basic index 58ebeb80..3ea79fa2 100755 --- a/setup/fio-setup-basic +++ b/setup/fio-setup-basic @@ -95,6 +95,7 @@ fallocate=$fallocate io_size=$io_size file_service_type=$file_service_type random_distribution=$random_distribution +allow_mounted_write=1 group_reporting create_only=1 pre_read=$pre_read
On Wed, Nov 04, 2020 at 07:46:38PM +0800, Wei Jihui wrote:
[Why] when test fio with write mode, an error is reported: fio: /dev/sda appears mounted, and 'allow_mounted_write' isn't set.
Better explain who mounted it. Then we know whether it's the best option to set allow_mounted_write here.
[How] add allow_mounted_write when write mode
Signed-off-by: Wei Jihui weijihuiall@163.com
setup/fio-setup-basic | 1 + 1 file changed, 1 insertion(+)
diff --git a/setup/fio-setup-basic b/setup/fio-setup-basic index 58ebeb80..3ea79fa2 100755 --- a/setup/fio-setup-basic +++ b/setup/fio-setup-basic @@ -95,6 +95,7 @@ fallocate=$fallocate io_size=$io_size file_service_type=$file_service_type random_distribution=$random_distribution +allow_mounted_write=1 group_reporting create_only=1 pre_read=$pre_read -- 2.23.0