• Vyacheslav Dubeyko's avatar
    nilfs2: add /sys/fs/nilfs2/<device>/superblock group · caa05d49
    Vyacheslav Dubeyko authored
    This patch adds creation of /sys/fs/nilfs2/<device>/superblock
    group.
    
    The superblock group contains attributes that describe
    superblock's details:
    (1) sb_write_time - show previous write time of super block in
    human-readable format.
    (2) sb_write_time_secs - show previous write time of super block
    in seconds.
    (3) sb_write_count - show write count of super block.
    (4) sb_update_frequency - show/set interval of periodical update
    of superblock (in seconds). You can set preferable frequency of
    superblock update by command:
    
    echo <value> > /sys/fs/nilfs2/<device>/superblock/sb_update_frequency
    Signed-off-by: default avatarVyacheslav Dubeyko <Vyacheslav.Dubeyko@hgst.com>
    Cc: Vyacheslav Dubeyko <slava@dubeyko.com>
    Cc: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
    Cc: Michael L. Semon <mlsemon35@gmail.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    caa05d49
sysfs.c 13.8 KB