Deleted Added
full compact
ext2_inode_cnv.c (241011) ext2_inode_cnv.c (244475)
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 241011 2012-09-27 23:30:49Z mdf $
22 * $FreeBSD: head/sys/fs/ext2fs/ext2_inode_cnv.c 244475 2012-12-20 02:22:36Z 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>
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>
30#include <sys/lock.h>
31#include <sys/stat.h>
32#include <sys/vnode.h>
33
34#include <fs/ext2fs/inode.h>
35#include <fs/ext2fs/ext2fs.h>
31#include <sys/lock.h>
32#include <sys/stat.h>
33#include <sys/vnode.h>
34
35#include <fs/ext2fs/inode.h>
36#include <fs/ext2fs/ext2fs.h>
36#include <fs/ext2fs/ext2_extern.h>
37#include <fs/ext2fs/ext2_dinode.h>
37#include <fs/ext2fs/ext2_dinode.h>
38#include <fs/ext2fs/ext2_extern.h>
38
39#define XTIME_TO_NSEC(x) ((x & EXT3_NSEC_MASK) >> 2)
39
40#define XTIME_TO_NSEC(x) ((x & EXT3_NSEC_MASK) >> 2)
40#define NSEC_TO_XTIME(t) ((t << 2) & EXT3_NSEC_MASK)
41#define NSEC_TO_XTIME(t) (le32toh(t << 2) & EXT3_NSEC_MASK)
41
42void
43ext2_print_inode( in )
44 struct inode *in;
45{
46 int i;
47
48 printf( "Inode: %5ju", (uintmax_t)in->i_number);

--- 107 unchanged lines hidden ---
42
43void
44ext2_print_inode( in )
45 struct inode *in;
46{
47 int i;
48
49 printf( "Inode: %5ju", (uintmax_t)in->i_number);

--- 107 unchanged lines hidden ---