=== robbiew is now known as robbiew-afk [02:18] queue_fsck: /mnt: queuing check [02:18] mountall:mountall.c:564: Assertion failed in update_mount_dev_ids: mnt->udev_device != NULL [02:18] damnit, ion [02:18] ;) [02:19] Huh [02:20] Isn’t the only point where queue_fsck is called right after there’s an udev_device and it gets assigned to mnt->udev_device? :-P [02:20] no ;-) [02:21] what's the _needed thing about? [02:22] update_mount_dev_ids only does its work if _needed is true, that is, an udev event that might have updated the mapping has been received. [02:22] right [02:22] just trying to understand the logic :p [02:28] it looks like the update_mount_dev_ids can be just called in fsck_lock() [02:28] and that should do the no-device => always lock thing [02:28] But always lock what? [02:28] loopback mounted image :) [02:29] The logic probably should be extended to follow that image to the partition it resides on, and that partition to the physical devices. [02:31] possibly [02:31] except that the partition it resides on must be already mounted :p [02:31] so there's little point [02:32] already mounted => already checked [02:32] Other images to be fscked may be on that partition. [02:32] a fair point [02:32] but then, arguably, you don't want to mount it either [02:33] so the same locks should be applied to mounts too [02:33] Can mount be that IO-intensive? I can see a journal may need to be handled or something like that, but still. [02:34] if that's /usr [02:34] and the other thing is /whatever [02:34] then that means the boot will continue [02:34] that's IO intensive :p [02:35] But it might just as well get to lock /whatever first and delay /usr. One could implement priorities, of course. [02:36] :) [02:36] it's one of those problems that gets deeper the longer you look at it, isn't it [02:36] Heh [02:41] pushed to my branch [02:41] feel free to much aroun [02:41] muck around! [02:41] With the fsck queue, the worst case scenario is that /usr gets fscked after /whatever, but because there’s no disk thrashing (if you have a HDD), it’s still faster than the worst case scenario with everything being parallel and fsck instances spending most of their time waiting for the disk to seek. I have no hard data, but i’d expect the worst mount to still be so fast it doesn’t need queuing. With queue prioritization, one could get the boot time even ... [02:42] ... faster, of course. [02:42] Thanks. I’ll try to look at the loop mount case. Shouldn’t be hard, just get the device from stat() and get an udev device object for that. [02:51] Meh, bzr rebase is stupid compared to git rebase. [02:53] hmm? [02:54] why rebase? [02:58] I just wanted to reset the branch to the ~ubuntu-core-dev state. merge probably would have done that, too. I just expected rebase to reset the branch to that state and then notice it doesn’t need to do anything else. You know that frustration you get with git, because you’re not used to its workflow? I haven’t studied bzr enough to be entirely familiar with its inner workings, so i get a similar thing with bzr. :-P [02:59] heh [02:59] % bzr reset --help [02:59] bzr: ERROR: unknown command "reset" [02:59] revert ;) [02:59] bzr checkout does the wrong thing, too :-P [03:00] bzr's command set is more like svn's [03:01] whereas git's is more like an evening at the pleasure of the spanish inquisition's more perverted torturer [03:01] With loop mounts, mnt->device is /foo/image, right? [03:01] yes [03:01] unless it's /dev/loop0 ;p [03:09] Would it be ok to iterate through mnt->deps and set dep->udev_device = udev_device if it dep->device looks like an image file near the line that sets mnt->udev_device in try_udev_device? [03:11] isn't that wrong? [03:12] ie. exactly the wrong way around [03:12] mnt->udev_device = dep->udev_device is maybe right [03:12] but then how do you deal with multiple parents? [03:13] Ah, i guessed the meaning of mnt->deps incorrectly, assuming it would be nicer to keep a list of ‘which mounts depend on this one’, so that they can be handled easily when ‘this one’ is ready. [03:14] I did the opposite [03:14] it turns out to be more reliable [03:27] Now i need a struct udev *udev handle in update_physical_dev_ids, which may not have a mnt->udev_device. Would it be okay to make udev file-global? [03:28] update_mount_dev_ids, that is, which i think should be renamed as update_physical_dev_ids. :-) [03:43] sure fiddle away ;) [03:50] How to commit certain changes to a file, leaving the rest for the next commit? [03:50] in bzr [03:50] Similar to git add -p === sadmac_ is now known as sadmac [04:36] keybuk: Pushed to https://code.edge.launchpad.net/~ion/ubuntu/karmic/mountall/fsck-locking [04:57] ion: bzr shelve is how you do add -p stuff. Its git stash essentially. You put away the bits you /don't/ want to commit [04:57] Alright, thanks === h\h_ is now known as haraldh [10:38] Sometimes, when a system goes wrong, you need to go through the boot process piece by piece [10:39] With SysV-style init, this is relatively easy. How do I debug very early stage bootup problems using upstart? [10:41] I just replaced a hard-drive, see, and so I copied over using 'dd' [10:41] chaos is ensuing.. === h\h_ is now known as haraldh [13:38] in upstart 0.3, is there some way to specify that the post-stop script should only be run if the main script ran successfully? [14:22] mgoetze: you can tell from one of the environment variables whether the service is stopping or failing... don't remember what its called... [14:22] mgoetze: but basically you could do that and just have your post stop script quit immediately if the service failed. [15:01] actually you can't [15:02] Keybuk: not exported there/ [15:02] *? [15:04] right === robbiew-afk is now known as robbiew [15:09] oh, he said 0.3, right. [15:09] Keybuk: we changed that in 0.6 didn't we? [15:23] keybuk: It seems 0.2.0~ never remounts the root partition rw. I’ll investigate today. [15:32] ion: yeah I know why that is ;) [15:32] bit of a think-o [15:33] keybuk: But other than that, the locking and everything seems to work with the PPA package. My branch also seems to handle the locking for loop mounts correctly. [18:11] how should i run a script at startup and shutdown using upstart? [18:13] Nattgew_: depends on when precisely you want that to happen [18:13] well i have a script that i usually run at 99 on boot and at 01 at shutdown with the sysv scripts... [18:15] Nattgew_: if you're on ubuntu or fedora, just install it as a sysv script like usual and it'll get run. If you're on another distro with a different/more exotic upstart config it'll depend on how they've set it up. [18:16] ok, i'm on ubuntu... i think i'm going to try using /etc/gdm/PreSession and PostSession [18:17] Nattgew_: that does something slightly different. Possibly better. [18:18] yeah, i think it's more what i want. thanks for the info. [18:18] np === robbiew is now known as robbiew-afk [19:30] I'm using Ubuntu 9.10 Beta, installed bootchart and now i noticed that the boot time is longer. So I was thinking, the boot time increased? Or now with upstart bootchart can get a better (more real) time? [19:32] x-warrior: might be more of a #ubuntu question, but I think I heard something about them starting boot chart earlier now (though its nothing to do with upstart) [19:32] sadmac2, ok, sorry I will ask at ubuntu ;) === robbiew-afk is now known as robbiew === robbiew is now known as robbiew-afk