Lines 11-17
Link Here
|
11 |
* |
11 |
* |
12 |
* This file is part of VirtualBox Open Source Edition (OSE), as |
12 |
* This file is part of VirtualBox Open Source Edition (OSE), as |
13 |
* available from http://www.virtualbox.org. This file is free software; |
13 |
* available from http://www.virtualbox.org. This file is free software; |
14 |
@@ -14,245 +9,479 @@ |
14 |
@@ -14,245 +9,478 @@ |
15 |
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the |
15 |
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the |
16 |
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. |
16 |
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. |
17 |
*/ |
17 |
*/ |
Lines 466-472
Link Here
|
466 |
+ |
466 |
+ |
467 |
+ MNT_ILOCK(mp); |
467 |
+ MNT_ILOCK(mp); |
468 |
+ mp->mnt_data = vboxfsmp; |
468 |
+ mp->mnt_data = vboxfsmp; |
469 |
+ bzero(&mp->mnt_stat.f_fsid, sizeof(&mp->mnt_stat.f_fsid)); |
|
|
470 |
+ /* f_fsid is int32_t but serial is uint32_t, convert */ |
469 |
+ /* f_fsid is int32_t but serial is uint32_t, convert */ |
471 |
+ memcpy(&mp->mnt_stat.f_fsid, &fsinfo.serial, sizeof(mp->mnt_stat.f_fsid)); |
470 |
+ memcpy(&mp->mnt_stat.f_fsid, &fsinfo.serial, sizeof(mp->mnt_stat.f_fsid)); |
472 |
+ mp->mnt_flag |= MNT_LOCAL; |
471 |
+ mp->mnt_flag |= MNT_LOCAL; |