From: nikita Date: Thu, 20 Jul 2006 22:58:11 +0000 (+0000) Subject: dt: add ->dt_conf_get() operation X-Git-Tag: v1_8_0_110~486^2~1369 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=445462c8f5c4c97148f95b0bcb4e599d533a5dfc;p=fs%2Flustre-release.git dt: add ->dt_conf_get() operation --- diff --git a/lustre/include/dt_object.h b/lustre/include/dt_object.h index 4c0497d..0624848 100644 --- a/lustre/include/dt_object.h +++ b/lustre/include/dt_object.h @@ -61,6 +61,12 @@ enum dt_lock_mode { DT_READ_LOCK = 2, }; +struct dt_device_param { + unsigned ddp_max_name_len; + unsigned ddp_max_nlink; + unsigned ddp_block_shift; +}; + /* * Operations on dt device. */ @@ -86,6 +92,12 @@ struct dt_device_operations { */ int (*dt_root_get)(const struct lu_context *ctx, struct dt_device *dev, struct lu_fid *f); + /* + * Return device configuration data. + */ + void (*dt_conf_get)(const struct lu_context *ctx, + const struct dt_device *dev, + struct dt_device_param *param); }; struct dt_index_features {