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
@ -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