FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 09-16-2011, 02:19 PM
David Cantrell
 
Default Do not strip trailing zeros from XFS labels (#571513)

When you specify an XFS filesystem label that ends in a zero, at least
with --noformat, anaconda strips the trailing zero from the label
because the python function readXFSLabel_int() which reads the label
from disk uses the wrong character for the null terminator, "x00" when
it should be using ''.

Patch from Andrew Ryan <andrewr@nam-shub.com>
---
isys/isys.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/isys/isys.py b/isys/isys.py
index 6312ba8..1a993ef 100644
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -567,7 +567,7 @@ def readXFSLabel_int(device):

xfslabel = None
if len(buf) == 128 and buf[0:4] == "XFSB":
- xfslabel = string.rstrip(buf[108:120],"x00")
+ xfslabel = string.rstrip(buf[108:120],'')

return xfslabel

--
1.7.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 04:34 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org