All of lore.kernel.org
 help / color / mirror / Atom feed
* How can I get my sector size (via queue_limits?) from a dm_target?
@ 2016-01-20  3:32 Eric Wheeler
  2016-01-20 17:52 ` Mike Snitzer
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Wheeler @ 2016-01-20  3:32 UTC (permalink / raw)
  To: dm-devel

Hello all,

dm_target->len gives me sector count, but I need to know the default 
sector size discovered by the blk stacking code without assuming 512b.

Now that I have the dm .iterate_devices callback defined and my 
queue_limits are sane by default, how can I get a pointer to the 
queue_limits structure for my device given a dm_target structure?

It looks like I should call dm_get_md_queue() after getting the md from 
dm_table_get_md(target->table), but dm_get_md_queue is not an exported 
symbol.

Also, is that value correct within the .ctr, or only after the .ctr 
returns?  If after, how can I hook in after limits are assigned but before 
.map gets called?  Otherwise stated, I would like to know the stacked 
queue_limits corrected for lower layers within the .ctr function.

Thanks for your help!

-Eric

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-01-20 17:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-20  3:32 How can I get my sector size (via queue_limits?) from a dm_target? Eric Wheeler
2016-01-20 17:52 ` Mike Snitzer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.