Re: [PATCH 1/2 V2] xfs_logprint: Handle multiply-logged inode fields

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I've tested this by a simple test such as creating one
> file on an selinux box, so that data+attr is set, and
> logprinting; I've also tested by running logprint after
> subsequent xfstest runs (although we hit other bugs that
> way).

Can you add this test to xfstests, please?

> +
> +    if (f->ilf_fields & (XFS_ILOG_DEV | XFS_ILOG_UUID)) {
> +	switch (f->ilf_fields & (XFS_ILOG_DEV | XFS_ILOG_UUID)) {
> +	case XFS_ILOG_DEV:
> +	    printf(_("DEV inode: no extra region\n"));

The if here looks odd, I think you should follow the style with
a switch on a masked value as it's done in xlog_recover_inode_pass2()
in the kernel.

I also reall hate the indentation in this function, can you thrown in
a preparatory patch to change it to the normal one?

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs


[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux