Bug 458582 - RFE: make anaconda gives labels for unlabeld partitions in fixed drives
Summary: RFE: make anaconda gives labels for unlabeld partitions in fixed drives
Keywords:
Status: CLOSED DUPLICATE of bug 443211
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 9
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-08-10 11:27 UTC by Muayyad Alsadi
Modified: 2008-08-11 14:42 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-08-11 14:42:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
traceback (38.97 KB, text/plain)
2008-08-10 14:53 UTC, Muayyad Alsadi
no flags Details

Description Muayyad Alsadi 2008-08-10 11:27:10 UTC
Description of problem:
unlabeld partition vfat partitions did not appear in gnome
and if the user tries to set a mount point like /media/C or /mnt/C
while installing for a vfat partition that does not have a name an exception will happen

How reproducible:
always

Steps to Reproduce:
1. create a 5GB sparse file name hdd.img 
2. used parted on that file to create 1GB vfat partition without label and leave 4GB unallocated for fedora installation
3. start a qemu virtual machine
4. double click the vfat partition in custom disk layout and set a mount point for it
  
Actual results:
exception dialog

Expected results:
no error

Additional info:
I suggest code like this

def label_gen():
  for j in xrange(67,91): yield chr(j)
  for j in xrange(65,91):
    for i in suffex_gen():
       l=chr(j)+str(i)
       if len(l)>max_l: return None
       yield l

def suggest_name(f,chk):
  for i in label_gen():
     if chk(i): return i
  return None

where max_l could be set to 8
and chk is a function that returns true if the suggested label is ok it could be something like this
if i not in labels: return True

Comment 1 Chris Lumens 2008-08-10 14:10:55 UTC
Please attach the complete traceback to this bug report so we can fix it.

Comment 2 Muayyad Alsadi 2008-08-10 14:53:41 UTC
Created attachment 313892 [details]
traceback

Comment 3 Chris Lumens 2008-08-11 14:42:45 UTC

*** This bug has been marked as a duplicate of bug 443211 ***


Note You need to log in before you can comment on or make changes to this bug.