cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] [PATCH] Fix qdiskd device scanning logic
@ 2007-11-28 21:07 Fabio Massimo Di Nitto
  2007-11-28 22:11 ` [Cluster-devel] " Joel Becker
  0 siblings, 1 reply; 3+ messages in thread
From: Fabio Massimo Di Nitto @ 2007-11-28 21:07 UTC (permalink / raw)
  To: cluster-devel.redhat.com


Hi Lon,

the original idea of scanning /dev was not too bad but after porting it to
ocfs2-tools and brainstorming again with the guys, we found a few things that
could be done better.

Let's change a direct scan of /dev into:

- scan /sys/block first for well.. block devices.
- sysfs exports enough info for us to filter out removable devices
  like cdroms that we don't care to even check and to gather
  maj/min of each device.
- scan /dev only to match maj/min and gather the device name.
- never dig or attempt to check hidden files.

Please review or apply.

Joel: once applied on top, this is basically the same code that would land
in ocfs2-tools.

Thanks
Fabio

-- 
I'm going to make him an offer he can't refuse.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_proc_part_scan.diff
Type: application/pgp-encrypted
Size: 5980 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20071128/a166c95f/attachment.pgp>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-11-29  5:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-28 21:07 [Cluster-devel] [PATCH] Fix qdiskd device scanning logic Fabio Massimo Di Nitto
2007-11-28 22:11 ` [Cluster-devel] " Joel Becker
2007-11-29  5:08   ` Fabio Massimo Di Nitto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).