vfs_export.c (057e27959f7cfe8f0e496da451c09aad2a01d925) vfs_export.c (f257b7a54b4fe77840cf694314bdc401e00c31a1)
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.

--- 282 unchanged lines hidden (view full) ---

291 return (EBUSY);
292
293 /*
294 * Get real filehandle for root of exported FS.
295 */
296 bzero(&nfs_pub.np_handle, sizeof(nfs_pub.np_handle));
297 nfs_pub.np_handle.fh_fsid = mp->mnt_stat.f_fsid;
298
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.

--- 282 unchanged lines hidden (view full) ---

291 return (EBUSY);
292
293 /*
294 * Get real filehandle for root of exported FS.
295 */
296 bzero(&nfs_pub.np_handle, sizeof(nfs_pub.np_handle));
297 nfs_pub.np_handle.fh_fsid = mp->mnt_stat.f_fsid;
298
299 if ((error = VFS_ROOT(mp, &rvp)))
299 if ((error = VFS_ROOT(mp, &rvp, curthread /* XXX */)))
300 return (error);
301
302 if ((error = VFS_VPTOFH(rvp, &nfs_pub.np_handle.fh_fid)))
303 return (error);
304
305 vput(rvp);
306
307 /*

--- 100 unchanged lines hidden ---
300 return (error);
301
302 if ((error = VFS_VPTOFH(rvp, &nfs_pub.np_handle.fh_fid)))
303 return (error);
304
305 vput(rvp);
306
307 /*

--- 100 unchanged lines hidden ---