From 445462c8f5c4c97148f95b0bcb4e599d533a5dfc Mon Sep 17 00:00:00 2001 From: nikita Date: Thu, 20 Jul 2006 22:58:11 +0000 Subject: [PATCH] dt: add ->dt_conf_get() operation --- lustre/include/dt_object.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 { -- 1.8.3.1