Sample tablespace function.

Reviewed-by: robert.macomber