From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Date: Mon, 30 Mar 2009 16:08:58 +0000 Subject: Re: Question about debugging the source of uevents Message-Id: <49D0EE9A.3040108@gmail.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------enig1B42DE8377CD4DDDD64D3C59" List-Id: References: <49D0DA81.1020804@gmail.com> In-Reply-To: <49D0DA81.1020804@gmail.com> To: linux-hotplug@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1B42DE8377CD4DDDD64D3C59 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Jim Paris escribi=F3: > Kay Sievers wrote: >> On Mon, Mar 30, 2009 at 17:27, Tom wrote: >>>> Are you running smartd? >>> Yes, but I have smartd configured to ignore the hard disk if it's in >>> standby. In syslog I have: >>> smartd[7004]: Device: /dev/sda, is in STANDBY mode, suspending checks= >>> >>> And thanks for answering so fast (and wasting your time too). >> But I guess it open the device node writable, so it might trigger a >> change event. >=20 > FWIW, on my system with smartmontools 5.38,=20 >=20 > smartctl -a /dev/sda =3D> open("/dev/sda", O_RDWR|O_NONBLOCK) > smartctl -d ata -a /dev/sda =3D> open("/dev/sda", O_RDONLY|O_NONBLOCK)= >=20 > It behaves the same in both cases. Tom, you might try adding "-d ata" > to /etc/smartd.conf to see if it works around your problem. >=20 Thanks Jim! That's even better. Now I don't have to use the nowatch udev rule. With '-d ata' parameter the uvent isn't triggered (and I straced it too). > -jim >=20 >=20 --------------enig1B42DE8377CD4DDDD64D3C59 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAknQ7poACgkQRScp7ATOSDwLVwCgsPsAbl49B6KUA9KxV2qKYPy3 dWcAn0lJasQvnvqdHahL7vSFEwfyGNSU =AwWQ -----END PGP SIGNATURE----- --------------enig1B42DE8377CD4DDDD64D3C59--