Newsgroups: comp.os.minix
Date: Tue, 31 Oct 2000 17:44:36 +1100
From: Ben <s3109345@iwaki.anu.edu.au>
X-Sender: s3109345@challender
Subject: Minix filesystem
Message-ID: <Pine.GSO.4.10.10010311738090.10677-100000@challender>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
NNTP-Posting-Host: 150.203.21.90
X-Original-NNTP-Posting-Host: 150.203.21.90
X-Trace: 31 Oct 2000 17:44:39 +1000, 150.203.21.90
Organization: Australian National University
Lines: 61
Path: news.adfa.edu.au!clarion.carno.net.au!challender!s3109345
Xref: news.adfa.edu.au comp.os.minix:36009

Hi,
   would anyone be able to tell me which part of the superblock marks the
super block as clean. I think it is either s_dirt or s_dirty, but I am not
sure. The structure of the super_block is below.

Any help would be greatly appreciated.

thanks in advance, Arun

    extern struct list_head super_blocks;
519 
520 #define sb_entry(list)  list_entry((list), struct super_block, s_list)
521 struct super_block {
522         struct list_head        s_list;         /* Keep this first */
523         kdev_t                  s_dev;
524         unsigned long           s_blocksize;
525         unsigned char           s_blocksize_bits;
526         unsigned char           s_lock;
527         unsigned char           s_rd_only;
528         unsigned char           s_dirt;
529         struct file_system_type *s_type;
530         struct super_operations *s_op;
531         struct dquot_operations *dq_op;
532         unsigned long           s_flags;
533         unsigned long           s_magic;
534         unsigned long           s_time;
535         struct dentry           *s_root;
536         struct wait_queue       *s_wait;
537 
538         struct inode            *s_ibasket;
539         short int               s_ibasket_count;
540         short int               s_ibasket_max;
541         struct list_head        s_dirty;        /* dirty inodes */
542 
543         union {
544                 struct minix_sb_info    minix_sb;
545                 struct ext2_sb_info     ext2_sb;
546                 struct hpfs_sb_info     hpfs_sb;
547                 struct ntfs_sb_info     ntfs_sb;
548                 struct msdos_sb_info    msdos_sb;
549                 struct isofs_sb_info    isofs_sb;
550                 struct nfs_sb_info      nfs_sb;
551                 struct sysv_sb_info     sysv_sb;
552                 struct affs_sb_info     affs_sb;
553                 struct ufs_sb_info      ufs_sb;
554                 struct efs_sb_info      efs_sb;
555                 struct romfs_sb_info    romfs_sb;
556                 struct smb_sb_info      smbfs_sb;
557                 struct hfs_sb_info      hfs_sb;
558                 struct adfs_sb_info     adfs_sb;
559                 struct qnx4_sb_info     qnx4_sb;           
560                 void                    *generic_sbp;
561         } u;
562         /*
563          * The next field is for VFS *only*. No filesystems have any
business
564          * even looking at it. You had been warned.
565          */
566         struct semaphore s_vfs_rename_sem;      /* Kludge */
567 };

