Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Apr 2009 16:56:03 -0400 (EDT)
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        freebsd-fs@freebsd.org
Subject:   Why do some ufs i-node fields have 2 copies?
Message-ID:  <Pine.GSO.4.63.0904261651460.4478@muncher.cs.uoguelph.ca>

next in thread | raw e-mail | index | archive | help
Hi,

I was just wondering if anyone conversant with ufs/ffs could tell me why
the following fields of the i-node have off-disk and on-disk copies?
(One thought I had was that these fields are sometimes set to values
  that shouldn't get saved on-disk, but it was just a hunch.)
 	/*
 	 * Copies from the on-disk dinode itself.
 	 */
 	u_int16_t i_mode;	/* IFMT, permissions; see below. */
 	int16_t	  i_nlink;	/* File link count. */
 	u_int64_t i_size;	/* File byte count. */
 	u_int32_t i_flags;	/* Status flags (chflags). */
 	int64_t	  i_gen;	/* Generation number. */
 	u_int32_t i_uid;	/* File owner. */
 	u_int32_t i_gid;	/* File group. */
 	/*
 	 * The real copy of the on-disk inode.

Thanks in advance for any info, rick



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.63.0904261651460.4478>