/srv/irclogs.ubuntu.com/2008/08/07/#ubuntu-installer.txt

=== evand is now known as evand|vacation
=== superm1|away is now known as superm1
=== superm1 is now known as superm1|away
TheMusocjwatson: Do you have any time in the next two hours or so that you can spare me to talk about libparted?12:31
TheMusocjwatson: I'm somewhat unsure as to what I may have to do to tell it about dmraid.12:32
cjwatsonTheMuso: I have an interview in half an hour and need to prepare, but perhaps right after that?12:34
TheMusocjwatson: Thats fine by me.12:34
TheMusoThe two hours I refer to is the amount of time until I'm likely to head to bed.12:34
cjwatsonTheMuso: I've just realised my interview is at 1300 UTC not BST (whoops!), so I'm free now13:03
cjwatsonTheMuso: how does dmraid show up in terms of devices? IIRC it looks just like device-mapper devices at that level13:04
cjwatsonTheMuso: and the other end of the question is what special things libparted needs to do with dmraid devices13:05
TheMusocjwatson: Sorry, thought you were interviewing, so was away doing other things. :)13:20
TheMusocjwatson: Dmraid devices are simply device mapper devices, major 254, and minor can be anything. The node names can also be different, depending on the controller, and any possible assigned name/date from the BIOS.13:21
TheMusocjwatson: One way to identify them would be their UUIDs, which is possible via the devmapper API IIRC. The UUIDs for the devmapper stuff are unique, in that they start with DMRAID-13:22
TheMusocjwatson: As to what libparted needs to do, it has to treat them like a proper hard disk, in that the master node is the MBR/partition table of the device, and the other nodes are partitions.13:22
cjwatsondoes it need to call the reread-partition-table ioctls on the disk-like device?13:25
cjwatsonwhat is the scheme for transforming disk-like device names into partition-like device names? is it regular?13:25
TheMusoNot if no changes have been made, no. Dmraid does that when setting up the devices.13:25
cjwatsonI mean if changes have been made - for example if you ask libparted to create a new partition on the disk-like device13:26
TheMusocjwatson: By transofmring, do you mean something like sda/sdb? If so, they simply stay as they are, and a devmapper mapping is set up with new nodes in /dev/mapper.13:26
cjwatsonI mean the process for getting from /dev/sdb to /dev/sdb513:26
TheMusocjwatson: Oh in that case, yes the partition table will have to be reread and the devmapper nodes updated accordingly.13:26
cjwatsonare the devmapper calls that libparted already does for dm devices good enough for that?13:27
TheMusoI would think so, but they are for single devices, like LVM etc, so not entirely sure without taking another look.13:28
cjwatsonit sounds like the main thing you have to do is tell libparted/arch/linux.c:_device_get_part_path about the device name transformation rules13:29
cjwatsonI *think* most of the rest should just work13:29
cjwatsonthe decision about whether to use partition devices or not is largely taken on the basis of what sort of partition table (if any) is on the disk-like device13:30
TheMusoA standard MS-DOS partition table.13:30
cjwatsonright, so you probably just need to teach it how to find the partition nodes13:31
TheMusoRight, I thought as much. Somewhat difficult due to node names not being usable to help with that... Although given we nknow the master node, we can work out partitions from there possibly.13:32
cjwatsonthe disk device should be accessible at the time you need to ask this question, so you should be able to use the devmapper API safely13:33
TheMusoOk.13:34
TheMusoI'll have to look at the code on a fresher state of mind than what I am in currently, but things make sense.13:35
TheMusocjwatson: Actually one thin I'm not sure of, when yousaid I'd have to teach it about the device nodes, do you mean in the function you referred to above, _device_get_part_path, or is that likely to have to be done in one of the devmapper related functions?13:39
cjwatsonI meant in _device_get_part_path itself13:39
TheMusoOh ok.13:40
cjwatsonyou might need to write a devmapper-based helper function to figure out whether the device is dmraid or not though13:40
TheMusoYeah, I can likely base it on UUID.13:40
=== superm1|away is now known as superm1
=== superm1 is now known as superm1|away
=== superm1|away is now known as superm1
CIA-2netcfg: cjwatson * r626 ubuntu/debian/ (changelog control): Build for lpia.15:59
* xivulon "finished" coding the python win32 wrapper15:59
xivulon:) now I can actually do the python wubi gui15:59
CIA-2netcfg: cjwatson * r627 ubuntu/debian/changelog: releasing version 1.44ubuntu216:03
CIA-2debian-installer: cjwatson * r950 ubuntu/ (19 files in 17 dirs): Add support for lpia.16:57
CIA-2tasksel: cjwatson * r1360 fix-seen-handling/ (debian/changelog tasksel-debconf):17:18
CIA-2tasksel: Fix seen flag handling: you can now preseed tasksel/first without17:18
CIA-2tasksel: setting the seen flag in order to set defaults while still displaying17:18
CIA-2tasksel: the question.17:18
CIA-2grub-installer: cjwatson * r737 ubuntu/ (debian/changelog grub-installer): merge Dustin's fix for LP: #3364918:55
CIA-2grub-installer: cjwatson * r738 ubuntu/grub-installer: move write_grub definition to before its use18:56
CIA-2grub-installer: cjwatson * r739 ubuntu/grub-installer: more portable shell arithmetic19:01
CIA-2grub-installer: cjwatson * r740 ubuntu/debian/changelog: releasing version 1.32ubuntu219:03
CIA-2debian-installer: cjwatson * r951 ubuntu/debian/changelog: releasing version 20080522ubuntu919:19
kirklandcjwatson: hey there19:52
kirklandcjwatson: i was planning on patching grub-install in the same manner19:52
kirklandcjwatson: after we agreed upon an algorithm that works in grub-installer19:53
superm1cjwatson, did you and evand|vacation come to a conclusion on that issue with intrepid and recovering from the hard drive before evand|vacation headed off to vacation?19:53
=== superm1 is now known as superm1|away
kirklandcjwatson: okay, i have a patch against grub's util/grub-install.in23:19
kirklandcjwatson: should I put that in the debian/patches/ dir, or edit the file directly in bzr?23:20
=== superm1|away is now known as superm1
=== superm1 is now known as superm1|away
=== superm1|away is now known as superm1

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!