Deleted Added
full compact
ext2_inode_cnv.c (246634) ext2_inode_cnv.c (251346)
1/*-
2 * Copyright (c) 1995 The University of Utah and
3 * the Computer Systems Laboratory at the University of Utah (CSL).
4 * All rights reserved.
5 *
6 * Permission to use, copy, modify and distribute this software is hereby
7 * granted provided that (1) source code retains these copyright, permission,
8 * and disclaimer notices, and (2) redistributions including binaries

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

14 * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 *
18 * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 * improvements that they make and grant CSL redistribution rights.
20 *
21 * Utah $Hdr$
1/*-
2 * Copyright (c) 1995 The University of Utah and
3 * the Computer Systems Laboratory at the University of Utah (CSL).
4 * All rights reserved.
5 *
6 * Permission to use, copy, modify and distribute this software is hereby
7 * granted provided that (1) source code retains these copyright, permission,
8 * and disclaimer notices, and (2) redistributions including binaries

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

14 * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
15 * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
16 * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 *
18 * CSL requests users of this software to return to csl-dist@cs.utah.edu any
19 * improvements that they make and grant CSL redistribution rights.
20 *
21 * Utah $Hdr$
22 * $FreeBSD: head/sys/fs/ext2fs/ext2_inode_cnv.c 246634 2013-02-10 19:49:37Z pfg $
22 * $FreeBSD: head/sys/fs/ext2fs/ext2_inode_cnv.c 251346 2013-06-03 20:33:05Z pfg $
23 */
24
25/*
26 * routines to convert on disk ext2 inodes into inodes and back
27 */
28#include <sys/param.h>
29#include <sys/systm.h>
30#include <sys/endian.h>

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

110 * inode to raw ext2 inode
111 */
112void
113ext2_i2ei(struct inode *ip, struct ext2fs_dinode *ei)
114{
115 int i;
116
117 ei->e2di_mode = ip->i_mode;
23 */
24
25/*
26 * routines to convert on disk ext2 inodes into inodes and back
27 */
28#include <sys/param.h>
29#include <sys/systm.h>
30#include <sys/endian.h>

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

110 * inode to raw ext2 inode
111 */
112void
113ext2_i2ei(struct inode *ip, struct ext2fs_dinode *ei)
114{
115 int i;
116
117 ei->e2di_mode = ip->i_mode;
118 ei->e2di_nlink = ip->i_nlink;
118 ei->e2di_nlink = ip->i_nlink;
119 /*
120 Godmar thinks: if dtime is nonzero, ext2 says this inode
121 has been deleted, this would correspond to a zero link count
122 */
123 ei->e2di_dtime = ei->e2di_nlink ? 0 : ip->i_mtime;
124 ei->e2di_size = ip->i_size;
125 if (S_ISREG(ip->i_mode))
126 ei->e2di_size_high = ip->i_size >> 32;

--- 25 unchanged lines hidden ---
119 /*
120 Godmar thinks: if dtime is nonzero, ext2 says this inode
121 has been deleted, this would correspond to a zero link count
122 */
123 ei->e2di_dtime = ei->e2di_nlink ? 0 : ip->i_mtime;
124 ei->e2di_size = ip->i_size;
125 if (S_ISREG(ip->i_mode))
126 ei->e2di_size_high = ip->i_size >> 32;

--- 25 unchanged lines hidden ---