vfs_export.c (48777) | vfs_export.c (48859) |
---|---|
1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95 | 1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95 |
39 * $Id: vfs_subr.c,v 1.207 1999/07/08 06:05:55 mckusick Exp $ | 39 * $Id: vfs_subr.c,v 1.208 1999/07/12 15:02:50 kris Exp $ |
40 */ 41 42/* 43 * External virtual filesystem routines 44 */ 45#include "opt_ddb.h" 46 47#include <sys/param.h> --- 291 unchanged lines hidden (view full) --- 339{ 340 static u_short xxxfs_mntid; 341 342 fsid_t tfsid; 343 int mtype; 344 345 simple_lock(&mntid_slock); 346 mtype = mp->mnt_vfc->vfc_typenum; | 40 */ 41 42/* 43 * External virtual filesystem routines 44 */ 45#include "opt_ddb.h" 46 47#include <sys/param.h> --- 291 unchanged lines hidden (view full) --- 339{ 340 static u_short xxxfs_mntid; 341 342 fsid_t tfsid; 343 int mtype; 344 345 simple_lock(&mntid_slock); 346 mtype = mp->mnt_vfc->vfc_typenum; |
347 mp->mnt_stat.f_fsid.val[0] = umakedev(255, mtype); | 347 mp->mnt_stat.f_fsid.val[0] = makeudev(255, mtype); |
348 mp->mnt_stat.f_fsid.val[1] = mtype; 349 if (xxxfs_mntid == 0) 350 ++xxxfs_mntid; | 348 mp->mnt_stat.f_fsid.val[1] = mtype; 349 if (xxxfs_mntid == 0) 350 ++xxxfs_mntid; |
351 tfsid.val[0] = umakedev(255, mtype + (xxxfs_mntid << 16)); | 351 tfsid.val[0] = makeudev(255, mtype + (xxxfs_mntid << 16)); |
352 tfsid.val[1] = mtype; 353 if (mountlist.cqh_first != (void *)&mountlist) { 354 while (vfs_getvfs(&tfsid)) { 355 xxxfs_mntid++; | 352 tfsid.val[1] = mtype; 353 if (mountlist.cqh_first != (void *)&mountlist) { 354 while (vfs_getvfs(&tfsid)) { 355 xxxfs_mntid++; |
356 tfsid.val[0] = umakedev(255, | 356 tfsid.val[0] = makeudev(255, |
357 mtype + (xxxfs_mntid << 16)); 358 } 359 } 360 mp->mnt_stat.f_fsid.val[0] = tfsid.val[0]; 361 simple_unlock(&mntid_slock); 362} 363 364/* --- 2613 unchanged lines hidden --- | 357 mtype + (xxxfs_mntid << 16)); 358 } 359 } 360 mp->mnt_stat.f_fsid.val[0] = tfsid.val[0]; 361 simple_unlock(&mntid_slock); 362} 363 364/* --- 2613 unchanged lines hidden --- |