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

Re: [PATCH 5/5] Get existing fs size for xfs.



On Thu, 2009-05-14 at 13:07 -1000, David Cantrell wrote:
> On 05/14/2009 01:03 PM, David Lehman wrote:
> > On Thu, 2009-05-14 at 12:55 -1000, David Cantrell wrote:
> >> ---
> >>   storage/formats/fs.py |    3 +++
> >>   1 files changed, 3 insertions(+), 0 deletions(-)
> >>
> >> diff --git a/storage/formats/fs.py b/storage/formats/fs.py
> >> index 7b70b49..c8b9b4a 100644
> >> --- a/storage/formats/fs.py
> >> +++ b/storage/formats/fs.py
> >> @@ -1095,6 +1095,9 @@ class XFS(FS):
> >>       _dump = True
> >>       _check = True
> >>       _packages = ["xfsprogs"]
> >> +    _infofs = "xfs_db"
> >> +    _defaultInfoOptions = "-c \"sb 0\" -c \"p dblocks\" -c \"p blocksize\""
> >
> > Oops -- spoke too soon. The above list needs to be in brackets.
> 
> Heh...whoops.  How about:
> 
>      _defaultInfoOptions = ["-c", "\"sb 0\"", "-c", "\"p dblocks\"",
>                             "-c", "\"p blocksize\""]

Looks good.

> 
> >
> >> +    _existingSizeFields = ["dblocks =", "blocksize ="]
> >>
> >>   register_device_format(XFS)
> >>
> >
> > _______________________________________________
> > Anaconda-devel-list mailing list
> > Anaconda-devel-list redhat com
> > https://www.redhat.com/mailman/listinfo/anaconda-devel-list
> 
> 


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