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) 1982, 1986, 1989, 1993
--- 29 unchanged lines hidden (view full) ---
38 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
39 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
40 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
41 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
42 * SUCH DAMAGE.
43 *
44 * @(#)ufs_vnops.c 8.27 (Berkeley) 5/27/95
45 * @(#)ext2_vnops.c 8.7 (Berkeley) 2/3/94
46 * $FreeBSD: head/sys/gnu/fs/ext2fs/ext2_vnops.c 53101 1999-11-12 03:34:28Z eivind $
47 */
48
49#include "opt_quota.h"
50#include "opt_suiddir.h"
51
52#include <sys/param.h>
53#include <sys/systm.h>
54#include <sys/resourcevar.h>
--- 1003 unchanged lines hidden (view full) ---
1058 ip = VTOI(vp);
1059 bcopy(ap->a_target, (char *)ip->i_shortlink, len);
1060 ip->i_size = len;
1061 ip->i_flag |= IN_CHANGE | IN_UPDATE;
1062 } else
1063 error = vn_rdwr(UIO_WRITE, vp, ap->a_target, len, (off_t)0,
1064 UIO_SYSSPACE, IO_NODELOCKED, ap->a_cnp->cn_cred, (int *)0,
1065 (struct proc *)0);
1066 vput(vp);
1067 return (error);
1068}
1069
1070/*
1071 * Allocate a new inode.
1072 */
1073static int
1074ext2_makeinode(mode, dvp, vpp, cnp)
--- 149 unchanged lines hidden ---
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) 1982, 1986, 1989, 1993
--- 29 unchanged lines hidden (view full) ---
38 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
39 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
40 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
41 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
42 * SUCH DAMAGE.
43 *
44 * @(#)ufs_vnops.c 8.27 (Berkeley) 5/27/95
45 * @(#)ext2_vnops.c 8.7 (Berkeley) 2/3/94
46 * $FreeBSD: head/sys/gnu/fs/ext2fs/ext2_vnops.c 53101 1999-11-12 03:34:28Z eivind $
47 */
48
49#include "opt_quota.h"
50#include "opt_suiddir.h"
51
52#include <sys/param.h>
53#include <sys/systm.h>
54#include <sys/resourcevar.h>
--- 1003 unchanged lines hidden (view full) ---
1058 ip = VTOI(vp);
1059 bcopy(ap->a_target, (char *)ip->i_shortlink, len);
1060 ip->i_size = len;
1061 ip->i_flag |= IN_CHANGE | IN_UPDATE;
1062 } else
1063 error = vn_rdwr(UIO_WRITE, vp, ap->a_target, len, (off_t)0,
1064 UIO_SYSSPACE, IO_NODELOCKED, ap->a_cnp->cn_cred, (int *)0,
1065 (struct proc *)0);
1066 vput(vp);
1067 return (error);
1068}
1069
1070/*
1071 * Allocate a new inode.
1072 */
1073static int
1074ext2_makeinode(mode, dvp, vpp, cnp)
--- 149 unchanged lines hidden ---