=== khermans__ [i=administ@nat/cisco/x-361219dbbc0b826a] has joined #upstart === theCore [n=alex@ubuntu/member/theCore] has joined #upstart === Md [i=md@freenode/staff/md] has joined #upstart === Md [i=md@freenode/staff/md] has joined #upstart === administrator_ [i=administ@nat/cisco/x-fedbc0ca9b370c8d] has joined #upstart === j_ack [n=rudi@p508D95BA.dip0.t-ipconnect.de] has joined #upstart === int0x0c [n=ben@161.253.47.94] has joined #upstart === int0x0c [n=ben@161.253.47.94] has joined #upstart === int0x0c [n=ben@161.253.47.94] has joined #upstart === Amaranth [n=travis@ubuntu/member/Amaranth] has joined #upstart === administrator_ [i=administ@nat/cisco/x-607c23dd90cafeb8] has joined #upstart === mbiebl [n=michael@dialin-145-254-249-245.pools.arcor-ip.net] has joined #upstart === phsdv [n=paul@dyn-88-122-33-87.ppp.tiscali.fr] has joined #upstart === pkt [n=pantelis@85.75.171.157] has joined #upstart === pkt [n=pantelis@athedsl-285854.otenet.gr] has joined #upstart === Md [i=md@freenode/staff/md] has joined #upstart === Amaranth [n=travis@ubuntu/member/Amaranth] has joined #upstart === _ion [i=johan@kiviniemi.name] has joined #upstart === j_ack [n=rudi@p508DB43F.dip0.t-ipconnect.de] has joined #upstart === phsdv [n=paul@dyn-88-122-33-87.ppp.tiscali.fr] has joined #upstart === administrator_ [i=administ@nat/cisco/x-1a796513494e6b04] has joined #upstart === Keybuk [n=scott@wing-commander.netsplit.com] has joined #upstart [09:09] *bounce* [09:09] hey [09:09] i'll test out 0.3.7 tomorrow hopefully [09:09] cool [09:09] I've not had any death threats yet, so it seems to be working [09:09] heh [09:13] already thinking what to put in the next version [09:13] think the big change will have to be re-implementing restart [09:39] <_ion> keybuk: The resources idea sounds great. [09:39] difficult it is deciding which state it needs to stay in [09:39] start/waiting I gues [09:40] <_ion> keybuk: It would be nice if a shell script could make the 'uses' information. [09:41] <_ion> E.g. block-device-added could find out the actual physical device for any of /dev/sda1, /dev/mdsomething and /dev/lvm-volumegroup/something, and say 'uses $DISKNAME' based on that. [09:42] <_ion> s/block-device-added/the fsck job/ [09:43] why would the disk size make a difference? [09:43] <_ion> Size? [09:43] oh [09:43] dunno where I read that === Keybuk blames the wine [09:43] <_ion> :-) [09:45] yeah, the problem there is you'd have to either include that in the event, or compute it in the jobs [09:46] I'm inclined to suggest the event is better there though, since it probably *has* that information in the first place [09:47] and it's cheaper than calculating it on every single job [09:47] <_ion> Good point. [09:47] it's just DEVICE=$(readlink /sys$DEVPATH/device) after all [09:52] <_ion> For LVM and MD, /sys/block/$foo/slaves seems to be the right way to find the physical device. [09:53] yeah, it'd be annoying to code all the different logic into the "check the filesystem" event [09:53] uh job [09:53] AND any other job that wants it [09:53] <_ion> True. [09:53] much easier to handle it in the specific events [09:53] be sure to check a > 2.6.20 kernel with the compat sysfs links disabled :-) [09:53] <_ion> Oh, 'slaves' is deprecated? [09:54] no, device is going away [09:54] <_ion> Ah [09:54] because /sys/block/hda itself is a symlink [09:54] like I said, much easier to put this into the event emission [09:55] Md: that hasn't happened yet though? [09:55] what? [09:56] the move of block devices to under the physical device [09:56] (which means the device symlink is still necessary) [09:57] I am not sure, I had to roll back because the 2.6.21rcsomething rawhide kernel broke resume from RAM on my system (any clue about how to debug this? the screen is not working, but I can reboot using magic sysrq) [09:57] 2.6.20 here, /block/hda is still a directory [09:58] that may be caused by the deprecated option though, looking at the code [09:58] might have to try turning it off and see what happens [09:59] wait [09:59] umm [09:59] wrong channel [09:59] sorry [10:15] dumb question, perhaps, but how stable are the contents of /sys? [10:16] not much so far [10:17] about as stable as upstart's job definition syntax :p === phsdv [n=paul@dyn-88-122-33-87.ppp.tiscali.fr] has joined #upstart [10:26] <_ion> Excuse my ignorance, but what's the correct way to find the corresponding /sys/block/... path for a file in /dev, e.g. sda*, md*, mapper/*? Comparing the contents of /sys/block/**/dev to the device types of the /dev files probably works, but there's a better way, isn't there? [10:27] _ion: udevinfo -n I think [10:28] udevinfo -q path -n hda1 [10:28] though you're not *really* supposed to use udevinfo as a database [10:29] <_ion> Thanks. Works for sda1 and md0, but not /dev/mapper/*. [10:29] did you try dm-0 as the name? [10:29] _ion: because these are not managed by udev [10:29] udevinfo -q path -n dm-0 [10:29] Md: they are in Ubuntu [10:30] <_ion> "no record for 'dm-0' in database" (an Edgy box) [10:32] hmm [10:32] dunno how to make a devmapper device [10:32] dmsetup create foo just blocks [10:33] ah === Keybuk pressed ^D [10:33] wing-commander scott# udevinfo -q path -n mapper/foo [10:33] /block/dm-0 [10:39] <_ion> Funny, doesn't work here. [10:48] hmm [10:48] feisty? === j_ack [n=rudi@p508DB43F.dip0.t-ipconnect.de] has joined #upstart