[lvm-devel] [PATCH v3 03/18] fsadm: Add simple configuration file

Zdenek Kabelac zkabelac at redhat.com
Tue Sep 27 15:39:42 UTC 2011


Dne 27.9.2011 15:42, Lukas Czerner napsal(a):
> Signed-off-by: Lukas Czerner <lczerner at redhat.com>
> ---
>  scripts/fsadm.sh |   30 ++++++++++++++++++++++++++++++
>  1 files changed, 30 insertions(+), 0 deletions(-)
> 
> diff --git a/scripts/fsadm.sh b/scripts/fsadm.sh
> index 58ff0ab..98921d3 100755
> --- a/scripts/fsadm.sh
> +++ b/scripts/fsadm.sh
> @@ -88,6 +88,9 @@ PROCDEVICES="/proc/devices"
>  PROCPARTITIONS="/proc/partitions"
>  NULL="$DM_DEV_DIR/null"
>  
> +CONFIG_PATHS="/etc/fsadm.conf ~/fsadm.conf"
> +CONFIG=
> +


Looks too complicated -  sourcing config file with some defines looks like
better approach here  if you really think it's useful.


Zdenek




More information about the lvm-devel mailing list