• B
    xfs: add log attributes for log lsn and grant head data · 80d6d698
    Brian Foster 提交于
    Create log attributes to export the current runtime state of the log to
    sysfs. Note that the filesystem should be frozen for consistency across
    attributes.
    
    The following per-mount attributes are created: log_head_lsn,
    log_tail_lsn, reserve_grant_head and write_grant_head. These represent
    the physical log head, tail and reserve and write grant heads
    respectively. Attribute values are exported in the following format:
    
    	"cycle:[block,byte]"
    
    ... where cycle represents the log cycle and [block,bytes] represents
    either the basic block or byte offset of the log, depending on the
    attribute.  Log sequence number (LSN) values are encoded in basic blocks
    and grant heads are encoded in bytes. All values are in decimal format.
    Signed-off-by: NBrian Foster <bfoster@redhat.com>
    Reviewed-by: NDave Chinner <dchinner@redhat.com>
    Signed-off-by: NDave Chinner <david@fromorbit.com>
    80d6d698
xfs_sysfs.c 3.8 KB