mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
Update cifs.rs
This commit is contained in:
@@ -53,7 +53,9 @@ pub async fn mount_cifs(
|
|||||||
.arg(format!("//{}{}", ip, absolute_path.display()))
|
.arg(format!("//{}{}", ip, absolute_path.display()))
|
||||||
.arg(mountpoint.as_ref());
|
.arg(mountpoint.as_ref());
|
||||||
if mount_type == ReadOnly {
|
if mount_type == ReadOnly {
|
||||||
cmd.arg("-o").arg("ro");
|
cmd.arg("-o").arg("ro,noserverino");
|
||||||
|
} else {
|
||||||
|
cmd.arg("-o").arg("noserverino");
|
||||||
}
|
}
|
||||||
cmd.invoke(crate::ErrorKind::Filesystem).await?;
|
cmd.invoke(crate::ErrorKind::Filesystem).await?;
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
Reference in New Issue
Block a user