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:
Tai-hwa Liang 2005-12-19 05:52:37 +00:00
parent 0705118de6
commit cc2c6edb77
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153531

View file

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