summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfs_vfsops.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2006-08-08 21:33:26 +0000
committermarcel <marcel@FreeBSD.org>2006-08-08 21:33:26 +0000
commite4aeb824edb92dc2f2c3508d8f32e6fd375644ad (patch)
treeb633d1c93da060c2b07efbe440fc48fd2d38e26c /sys/nfsclient/nfs_vfsops.c
parent7d23f1583e6ad8f51cc1aecedac76d865aeeed03 (diff)
downloadFreeBSD-src-e4aeb824edb92dc2f2c3508d8f32e6fd375644ad.zip
FreeBSD-src-e4aeb824edb92dc2f2c3508d8f32e6fd375644ad.tar.gz
Fix a phase-ordering bug: check the mediasize and sectorsize after
we obtained access. It is possible that GPT gets to taste a disk first, which means the disk has not been opened before and it will not get opened until after we checked the mediasize and sectorsize. However, since the mediasize and sectorsize are determined at open and that happens when access is optained, checking the mediasize and sectorsize before obtaining access may result in GPT rejecting the disk.
Diffstat (limited to 'sys/nfsclient/nfs_vfsops.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud