Deleted Added
full compact
ext2_vfsops.c (221128) ext2_vfsops.c (222167)
1/*-
2 * modified for EXT2FS support in Lites 1.1
3 *
4 * Aug 1995, Godmar Back (gback@cs.utah.edu)
5 * University of Utah, Department of Computer Science
6 */
7/*-
8 * Copyright (c) 1989, 1991, 1993, 1994

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

28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 * @(#)ffs_vfsops.c 8.8 (Berkeley) 4/18/94
1/*-
2 * modified for EXT2FS support in Lites 1.1
3 *
4 * Aug 1995, Godmar Back (gback@cs.utah.edu)
5 * University of Utah, Department of Computer Science
6 */
7/*-
8 * Copyright (c) 1989, 1991, 1993, 1994

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

28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 * @(#)ffs_vfsops.c 8.8 (Berkeley) 4/18/94
36 * $FreeBSD: head/sys/fs/ext2fs/ext2_vfsops.c 221128 2011-04-27 18:25:35Z jhb $
36 * $FreeBSD: head/sys/fs/ext2fs/ext2_vfsops.c 222167 2011-05-22 01:07:54Z rmacklem $
37 */
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/namei.h>
42#include <sys/priv.h>
43#include <sys/proc.h>
44#include <sys/kernel.h>

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

968 * Have to be really careful about stale file handles:
969 * - check that the inode number is valid
970 * - call ext2_vget() to get the locked inode
971 * - check for an unallocated inode (i_mode == 0)
972 * - check that the given client host has export rights and return
973 * those rights via. exflagsp and credanonp
974 */
975static int
37 */
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/namei.h>
42#include <sys/priv.h>
43#include <sys/proc.h>
44#include <sys/kernel.h>

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

968 * Have to be really careful about stale file handles:
969 * - check that the inode number is valid
970 * - call ext2_vget() to get the locked inode
971 * - check for an unallocated inode (i_mode == 0)
972 * - check that the given client host has export rights and return
973 * those rights via. exflagsp and credanonp
974 */
975static int
976ext2_fhtovp(struct mount *mp, struct fid *fhp, struct vnode **vpp)
976ext2_fhtovp(struct mount *mp, struct fid *fhp, int flags, struct vnode **vpp)
977{
978 struct inode *ip;
979 struct ufid *ufhp;
980 struct vnode *nvp;
981 struct m_ext2fs *fs;
982 int error;
983
984 ufhp = (struct ufid *)fhp;

--- 87 unchanged lines hidden ---
977{
978 struct inode *ip;
979 struct ufid *ufhp;
980 struct vnode *nvp;
981 struct m_ext2fs *fs;
982 int error;
983
984 ufhp = (struct ufid *)fhp;

--- 87 unchanged lines hidden ---