From ab254f33a4dec19d743fef297c98d92f133061d9 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 21 Feb 2009 20:27:33 +0000 Subject: [PATCH] - methods to set/get label on disk filesystem --- 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 d402b90..a118f0f 100644 --- a/lustre/include/dt_object.h +++ b/lustre/include/dt_object.h @@ -73,6 +73,8 @@ struct dt_device_param { unsigned ddp_max_name_len; unsigned ddp_max_nlink; unsigned ddp_block_shift; + void *ddp_mnt; /* XXX: old code can retrieve mnt -bzzz */ + int ddp_mount_type; }; /** @@ -138,6 +140,16 @@ struct dt_device_operations { void (*dt_init_quota_ctxt)(const struct lu_env *env, struct dt_device *dev, struct dt_quota_ctxt *ctxt, void *data); + + /** + * Get disk label + */ + char *(*dt_get_label)(const struct lu_env *env, struct dt_device *dev); + + /** + * Set disk label + */ + int (*dt_set_label)(const struct lu_env *, struct dt_device *, char *); }; struct dt_index_features { -- 1.8.3.1