mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-15 15:06:42 +00:00
Fixing multi-session disc mount by passing the correct "ssector" option
to the kernel. Submitted by: Enache Adrian <enache at rdslink dot ro>
This commit is contained in:
parent
0705118de6
commit
cc2c6edb77
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153531
@ -175,7 +175,7 @@ main(int argc, char **argv)
|
||||
build_iovec(&iov, &iovlen, "fstype", fstype, (size_t)-1);
|
||||
build_iovec(&iov, &iovlen, "fspath", mntpath, (size_t)-1);
|
||||
build_iovec(&iov, &iovlen, "from", dev, (size_t)-1);
|
||||
build_iovec(&iov, &iovlen, "ssector", &ssector, sizeof ssector);
|
||||
build_iovec_argf(&iov, &iovlen, "ssector", "%d", ssector);
|
||||
|
||||
if (nmount(iov, iovlen, mntflags) < 0)
|
||||
err(1, "%s", dev);
|
||||
|
Loading…
Reference in New Issue
Block a user