[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH] Use device.format.mountType insead of device.format.type for fstab.



On Tue, 2009-04-28 at 17:06 -0400, Peter Jones wrote:
> If available, use device.format.mountType instead of device.format.type
> when writing out fstab.  This way we write out the real fstype name, not
> the UI name.

Looks good.

> ---
>  storage/__init__.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/storage/__init__.py b/storage/__init__.py
> index de3f202..d7b53b6 100644
> --- a/storage/__init__.py
> +++ b/storage/__init__.py
> @@ -1802,7 +1802,7 @@ class FSSet(object):
>              if not device.format.mountable and device.format.type != "swap":
>                  continue
>  
> -            fstype = device.format.type
> +            fstype = getattr(device.format, "mountType", device.format.type)
>              if fstype == "swap":
>                  mountpoint = "swap"
>                  options = device.format.options


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]