1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

in memory and on disk inodes

Discussion in 'FreeBSD Development' started by fluca1978, Aug 17, 2011.

  1. fluca1978

    fluca1978 New Member

    Messages:
    733
    Likes Received:
    0
    Hi all,
    as far as I understand an inode has an in-memory representation (for instance sys/ufs/ufs/inode.h) that contains a pointer to an on-disk representation. The two are different because on disk things must be really right aligned, right?
    With regard to UFS, the DIP_SET macro sets flags on the on-disk copy of the in-memory inode pointer. I'm curious to understand when and how changes are effectively written back to disk and thru which flow. I mean, the dinode_u field of the inode struct where is flushed?
     
  2. fluca1978

    fluca1978 New Member

    Messages:
    733
    Likes Received:
    0
    Should I assume that the syncer daemon is responsible for syncing i-nodes too?