Re: Re: Re: [PATCH] blktrace: fix to trace a partition, instead of only disk

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

 



>Very nice! The only problem with this is that we have actions that are,
>by definition, per device. So we probably want to include any sector
>that is within the range of the partition, AND a zero sector. So that
>means changing act_log_check() to something ala:
>
>-       if (sector < bt->start_lba || sector > bt->end_lba)
>+       if (!sector || sector < bt->start_lba || sector > bt->end_lba)
>                return 1;
>
>in pseudo patch form.

Thank you sir. And perhaps, we change in __blk_add_trace():

-	if (unlikely(act_log_check(bt, what, sector, pid)))
+	if (act_log_check(bt, what, sector, pid))

Sorry for the lateness.

Happy New Year.

Shawn

--
To unsubscribe from this list: send the line "unsubscribe linux-btrace" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux