nlm_prot_impl.c (217326) | nlm_prot_impl.c (222167) |
---|---|
1/*- 2 * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ 3 * Authors: Doug Rabson <dfr@rabson.org> 4 * Developed with Red Inc: Alfred Perlstein <alfred@freebsd.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 14 unchanged lines hidden (view full) --- 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include "opt_inet6.h" 29 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ 3 * Authors: Doug Rabson <dfr@rabson.org> 4 * Developed with Red Inc: Alfred Perlstein <alfred@freebsd.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 14 unchanged lines hidden (view full) --- 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include "opt_inet6.h" 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/nlm/nlm_prot_impl.c 217326 2011-01-12 19:54:19Z mdf $"); | 31__FBSDID("$FreeBSD: head/sys/nlm/nlm_prot_impl.c 222167 2011-05-22 01:07:54Z rmacklem $"); |
32 33#include <sys/param.h> 34#include <sys/fail.h> 35#include <sys/fcntl.h> 36#include <sys/kernel.h> 37#include <sys/kthread.h> 38#include <sys/lockf.h> 39#include <sys/malloc.h> --- 1752 unchanged lines hidden (view full) --- 1792 if (error) 1793 goto out; 1794 1795 if (exflags & MNT_EXRDONLY || (vs->vs_mp->mnt_flag & MNT_RDONLY)) { 1796 error = EROFS; 1797 goto out; 1798 } 1799 | 32 33#include <sys/param.h> 34#include <sys/fail.h> 35#include <sys/fcntl.h> 36#include <sys/kernel.h> 37#include <sys/kthread.h> 38#include <sys/lockf.h> 39#include <sys/malloc.h> --- 1752 unchanged lines hidden (view full) --- 1792 if (error) 1793 goto out; 1794 1795 if (exflags & MNT_EXRDONLY || (vs->vs_mp->mnt_flag & MNT_RDONLY)) { 1796 error = EROFS; 1797 goto out; 1798 } 1799 |
1800 error = VFS_FHTOVP(vs->vs_mp, &fhp->fh_fid, &vs->vs_vp); | 1800 error = VFS_FHTOVP(vs->vs_mp, &fhp->fh_fid, LK_EXCLUSIVE, &vs->vs_vp); |
1801 if (error) 1802 goto out; 1803 vs->vs_vnlocked = TRUE; 1804 1805 if (!svc_getcred(rqstp, &cred, NULL)) { 1806 error = EINVAL; 1807 goto out; 1808 } --- 626 unchanged lines hidden --- | 1801 if (error) 1802 goto out; 1803 vs->vs_vnlocked = TRUE; 1804 1805 if (!svc_getcred(rqstp, &cred, NULL)) { 1806 error = EINVAL; 1807 goto out; 1808 } --- 626 unchanged lines hidden --- |