Message Box

23 January 2009

Re: [Fwd: udevadm, and why you should stop what you're doing]

On Fri, 2009-01-23 at 01:06 +0000, James Westby wrote:
> -------- Forwarded Message --------
> From: Scott James Remnant <scott@canonical.com>
> To: Ubuntu Development <ubuntu-devel@lists.ubuntu.com>
> Subject: udevadm, and why you should stop what you're doing
> Date: Thu, 22 Jan 2009 21:06:48 +0000
>
> There's a bit of a meme going around that it's safe to call udevadm (or
> its symlinks like udevtrigger/udevsettle) from package maintainer
> scripts without worrying about it.

Sorry, this should have come with a [DEVELOPERS] tag, it is obviously
of no interest to users.

Thanks,

James


--
Ubuntu-news-team mailing list
Ubuntu-news-team@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-news-team

[Fwd: udevadm, and why you should stop what you're doing]

-------- Forwarded Message --------
From: Scott James Remnant <scott@canonical.com>
To: Ubuntu Development <ubuntu-devel@lists.ubuntu.com>
Subject: udevadm, and why you should stop what you're doing
Date: Thu, 22 Jan 2009 21:06:48 +0000

There's a bit of a meme going around that it's safe to call udevadm (or
its symlinks like udevtrigger/udevsettle) from package maintainer
scripts without worrying about it.

I'm afraid to tell you that it isn't.


Here's a quick guide to what is safe to call:


I want to find out information about a device.

udevadm info

This is safe to call, and in recent releases
returns all information; combining both the udevdb and the
kernel uevent info.

It's even better to use libudev if you're writing code ;-)


I've built a module, and want to see if it's needed for anything on
the system.

modprobe

*NOT* udevadm trigger. I just filed a Critical bug against dkms
for this.

Just modprobe it. If no devices are claimed, then the module
will not be loaded and modprobe will return an exit code. If
devices are claimed, it'll return 0.

You need to depend on module-init-tools, of course; because
you're probably going to call things like depmod first


I've installed udev rules and want udev to do something about it.

udevadm trigger --action=change

*and* Depend on udev (you can't udevadm when udev is
unconfigured)

The action argument is of utmost importance. Without it, the
kernel will tell udev to treat all devices as *NEW*. This will
have lots of side-effects you are probably not expecting.

"change" is completely safe. It tells udev just to refresh
devices, and make sure everything's as it should be.

(This solves the network manager double-interface bug, the "my
disk is corrupt until after reboot" bug, etc.)


I've loaded a module, or called an ioctl(), or poked the kernel in
some other way, and I want udev to finish processing it.

udevadm settle

*and* Depend on udev.

There is no need for a trigger call; udevd is running, it'll get
the uevents from the kernel anyway. Trigger would just resend
them (along with uevents for the entire rest of the system
-which will have dangerous side-effects).

settle waits for udevd to finish processing any uevents queued
by the kernel when it is called.

This allows you to ensure the device node is created, or any
programs udev runs like vol_id are no longer running.

There are conditions it does not wait for:

- if you load a module for a bus, it won't wait for all devices
on that bus to show up -- it will only wait for the bus
to appear under /sys/bus

there's no such things as "probe completion" for just about
any bus you can name, your software simply needs to deal with
the fact that devices may show up at any time

- if you load a module containing a device driver, the driver
will claim all devices but the "class device" may not appear

e.g. loading a network card module doesn't mean that eth0 will
appear

it means that the pci device is claimed and the driver
initialised; it may be calling out for firmware, or performing
asynchronous initialisation of some kind

the class device will show up later, or may not show up at all

Scott

--
Ubuntu-news-team mailing list
Ubuntu-news-team@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-news-team

22 January 2009

Re: Fedora News IRC meeting?

On Thu, 2009-01-22 at 17:20 +0200, Nicu Buculei wrote:
> Pascal Calarco wrote:
> >
> > So far we have the following confirmed for an IRC meeting on Friday,
> > January 30 at 13:00-14:00 UTC:
> >
> > Oisin Feeley
> > Runa Bhattacharjee
> > Max Spevack
> > Adam Batkin
> > Pascal Calarco
>
> Very likely I will attend too.

I'll joing too.

-Chris

_______________________________________________
Fedora-news-list mailing list
Fedora-news-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-news-list

Re: Fedora News IRC meeting?

Pascal Calarco wrote:
>
> So far we have the following confirmed for an IRC meeting on Friday,
> January 30 at 13:00-14:00 UTC:
>
> Oisin Feeley
> Runa Bhattacharjee
> Max Spevack
> Adam Batkin
> Pascal Calarco

Very likely I will attend too.

--
nicu :: http://nicubunu.ro :: http://nicubunu.blogspot.com
Cool Fedora wallpapers: http://fedora.nicubunu.ro/wallpapers/
Open Clip Art Library: http://www.openclipart.org
my Fedora stuff: http://fedora.nicubunu.ro

_______________________________________________
Fedora-news-list mailing list
Fedora-news-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-news-list

Re: Fedora News IRC meeting?

Hi Fedora News team --

So far we have the following confirmed for an IRC meeting on Friday,
January 30 at 13:00-14:00 UTC:

Oisin Feeley
Runa Bhattacharjee
Max Spevack
Adam Batkin
Pascal Calarco

Thank you all very much for responding! I think this is enough for us
to go forward. If we have not heard from you yet, please do try to send
a quick e-mail to the list and acknowledge that you can or can't make
it, and if you have other items that should be considered to be discussed.

I've updated the Fedora meeting master page
(https://fedoraproject.org/wiki/Meeting_channel), and created a
NewsProject meetings and minutes
page.(https://fedoraproject.org/wiki/NewsProject/Meetings), linked from
the main News page.

Dale, I think you are the sole beat writer from western North America.
Obviously, this time is too early for you. I'd like to propose that
Oisin and I have a separate chat with you so you have a chance to weigh
in on the agenda issues. For future meetings, we could also see if the
time could be moved forward, and we can see who is available then.

For those beats that are dormant, if those writers could send a quick
update as to whether they would like to continue with their beat or not,
that would be great. If we don't hear from you, we will be reassigning
the beat to another volunteer who can devote time to it.

Thanks everyone!

- pascal

Pascal Calarco wrote:
> Greetings FWN contributors --
>
> Oisin and I have been thinking it would be a good idea to pull together
> an IRC meeting of the folk involved with Fedora Weekly News. There are
> several issues we should discuss, including:
>
> 1. Dormant beats
> 2. Formatting
> i. Use of templates, e.g. Dale's use of the pkg template
> ii. Citation/reference hyperlinks à la OpenSuSE mag
> iii. Possibly a new header/logo (sourced from Art people?)
> 3. Fedora Magazine. Is it worth the effort?
>
> Feel free to offer other issues for discussion as well here on the list.
>
> I think most of us here in North America are in Eastern time zone, but I
> could well be wrong -- please let us know if anyone is further west. I
> added Max, Nicu, and Runa, and came up with this schedule (assuming that
> Huzaifa is in the same timezone or earlier than Runa):
>
> http://www.timeanddate.com/worldclock/meetingtime.html?month=2&day=2&year=2009&p1=43&p2=37&p3=49&p4=1038&iv=0
>
> UTC 12:00 - 14:00 seems like the most reasonable window for all
> involved; we may have to go later if there are folks further west from us.
>
> Now, the #fedora-meeting channel schedule is at:
>
> https://fedoraproject.org/wiki/Fedora_meeting_channel
>
> It looks like we could meet Monday, Wednesday, or Friday given this
> schedule. We'd like to suggest 1/30 to the team, sometime between 12:00
> - 14:00 UTC.
>
> Would people be able to meet on this date and between these hours, and
> does anyone have any other suggested topics? We'll go with a date and
> time when most can be at the meeting. Many thanks!
>
> - pascal
>
> ---
> http://fedoraproject.org/wiki/User:Pcalarco
>
> _______________________________________________
> Fedora-news-list mailing list
> Fedora-news-list@redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-news-list

_______________________________________________
Fedora-news-list mailing list
Fedora-news-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-news-list

OSDir.com - 2 new articles

 



Click here to safely unsubscribe now from "OSDir.com" or change subscription settings

 
Unsubscribe from all current and future newsletters powered by FeedBlitz
Your requested content delivery powered by FeedBlitz, LLC, 9 Thoreau Way, Sudbury, MA 01776, USA. +1.978.776.9498

 

Translation Beat not happening this week

Hello,
I would be traveling during the weekend and shall be afk until Tuesday. Hence, translation beat for
the next issue would be taking a break.

Thanks

regards
Runa

_______________________________________________
Fedora-news-list mailing list
Fedora-news-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-news-list

heise online news 22/01/2009


heise online news 22/01/2009
www.heise-online.co.uk
[please load images]
Overview of the news from the past 24 hours
heise online news
Google to close blacklist support for anti-phishing feature in Firefox 2.0

Google will soon shut down the blacklist server that versions of Firefox 2.0 up to 2.0.0.18 rely on for phishing warnings

 Read article   [please load images]   [please load images]



Seagate dithers over drive firmware fix

Seagate has been having repeated problems with drive failure due to problem firmware on several families of their hard drives

 Read article   [please load images]   [please load images]



EU copyright extension: dangerous?

A post on the EFF blog claims proposed EU copyright extensions are 'dangerous'

 Read article   [please load images]   [please load images]



Mozilla's Test Pilot to record user behaviour

Developers at the Mozilla Foundation are working on a test platform aimed at improving the usability of their software by collecting data via an add-on that records how users interact with each Mozilla program

 Read article   [please load images]   [please load images]



Sun chief prescribes open source for US government

Sun co-founder McNealy says open source technologies and products could result in a more secure and cost effective US government

 Read article   [please load images]   [please load images]



Alfresco announce Alfresco Labs 3.0 final

The open source enterprise content management system has been finalised, delivering CMIS and Sharepoint interoperability and a drag and drop web site development environment

 Read article   [please load images]   [please load images]



Security update for critical holes in Typo3

The open source content management system suffers from multiple vulnerabilities and the Typo3 developers recommend upgrading as soon as possible

 Read article   [please load images]   [please load images]



Adobe opens its Real-Time Messaging Protocol

Adobe announces that the previously proprietary Real-Time Messaging protocol for the transmission of high-performance Audio, video and data streams will be passed to the Open Screen Project

 Read article   [please load images]   [please load images]



Ubuntu Mobile may, or may not, use Qt

The soon to be LGPL Qt GUI toolkit may be used on future versions of Ubuntu Mobile, but the developers haven't decided yet

 Read article   [please load images]   [please load images]



Over 100 million credit / debit cards compromised

A huge data breach at Heartland Payment systems may have put over 100 million credit and debit cards at risk

 Read article   [please load images]   [please load images]



French grant OpenStreetMap access to land registry data

The open source world maps project OpenStreetMap has apparently been granted official access to land registry vectorised geo-data by the French government

 Read article   [please load images]   [please load images]



[please load images] [please load images]

This newsletter is sent to in a multipart format. If you want to read it as plain text, you will have to change the display mode of your e-mail program.


You are receiving heise online news because you subscribed at our website.
If you no longer wish to receive the newsletter, you can cancel your subscription at http://www.heise-online.co.uk/newsletter/manage/news.


For more news from the world of technology, subscribe to our other newsletters:

Newsletter heise open source:
All the latest about Free and Open Source software from heise online, including news, features, analysis and case studies. www.heise-online.co.uk/newsletter/manage/open

Newsletter heise Security:
IT security news and alerts to keep your systems secure, with features giving an in-depth look at the world of IT security. www.heise-online.co.uk/newsletter/manage/security

Newsletter heise networks features:
In-depth articles, tools and techniques for networking and communications. www.heise-online.co.uk/newsletter/manage/networks


Legal notice

Publishers: Christian Heise, Ansgar Heise, Christian Persson

Editor-in-chief: Jonathan Bennett

All rights reserved. Any copies or dissemination on any medium, either in part of whole, requires the written consent of the publisher.

Copyright (c) 2008 Heise Media UK Ltd.