Skip to contentSkip to conversation

speedup loop device node creation.

PATCH In review Harald Hoyer 3 participants 7 messages Sep 10, 2007 – Sep 11, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 speedup loop device node creation.

---
 etc/udev/rules.d/50-udev-default.rules |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
etc/udev/rules.d/50-udev-default.rules +1 -0
index bdce004..3da9e85 100644
@@ -60,6 +60,7 @@ KERNEL="irlpt[0-9]*",		GROUP="lp"
 
 # block, tapes, block-releated
 SUBSYSTEM="block", GROUP="disk", MODE="0640"
+SUBSYSTEM="block", KERNEL="loop[0-9]*", OPTIONS+="last_rule"
 SUBSYSTEM="block", KERNEL="sr[0-9]*", SYMLINK+="scd%n"
 SUBSYSTEM="scsi", KERNEL="[0-9]*:[0-9]*", ACTION="add", ATTR{type}="0|7|14", ATTR{timeout}="60"
 SUBSYSTEM="scsi", KERNEL="[0-9]*:[0-9]*", ACTION="add", ATTR{type}="1", ATTR{timeout}="900"
Signature · 11 lines
1.5.2.4


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#1 lore raw
Quoted 1 line · Harald Hoyer

+SUBSYSTEM="block", KERNEL="loop[0-9]*", OPTIONS+="last_rule"

Why? Please explain this change.

Signature · 11 lines
ciao,
Marco

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#2 lore raw
In reply to Harald Hoyer
Quoted 5 lines · Marco d'Itri
Quoted 1 line · Harald Hoyer

+SUBSYSTEM=="block", KERNEL=="loop[0-9]*", OPTIONS+="last_rule"

Why? Please explain this change.

Same reason as "last_rule" for tty*.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#3 lore raw
In reply to Harald Hoyer
Quoted 5 lines · Harald Hoyer
Quoted 3 lines · Marco d'Itri
Quoted 1 line · Harald Hoyer

+SUBSYSTEM=="block", KERNEL=="loop[0-9]*", OPTIONS+="last_rule"

Why? Please explain this change.

Same reason as "last_rule" for tty*.

It's still not obvious what they have in common.

Signature · 2 lines
ciao,
Marco

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#4 lore raw
In reply to Harald Hoyer
Quoted 8 lines · Harald Hoyer
Quoted 5 lines · Marco d'Itri
Quoted 1 line · Harald Hoyer

+SUBSYSTEM="block", KERNEL="loop[0-9]*", OPTIONS+="last_rule"

Why? Please explain this change.

Same reason as "last_rule" for tty*.

Can we sure, that nobody wants to do anything with the loop blockdev events?

The tty events are skipped because there are hundreds of events at bootup which we expect to be useless.

Kay

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#5 lore raw
In reply to Harald Hoyer
Quoted 7 lines · Kay Sievers
Quoted 6 lines · Harald Hoyer
Quoted 5 lines · Marco d'Itri
Quoted 1 line · Harald Hoyer

+SUBSYSTEM=="block", KERNEL=="loop[0-9]*", OPTIONS+="last_rule"

Why? Please explain this change.

Quoted 8 lines
Quoted 1 line

Same reason as "last_rule" for tty*.

Can we sure, that nobody wants to do anything with the loop blockdev events?

The tty events are skipped because there are hundreds of events at bootup which we expect to be useless.

Kay

loop must be used with losetup... can be done, if wanted in 00-49-*.rule files.
In case of 128 or more loop devices (max_loop module parameter), this is as nice to have, as the tty* events.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#6 lore raw
In reply to Harald Hoyer
Quoted 4 lines · Harald Hoyer

loop must be used with losetup... can be done, if wanted in 00-49-*.rule files.
In case of 128 or more loop devices (max_loop module parameter), this is as nice to have, as the tty* events.

Hardly a common configuration.
I object to special-casing more devices this way.

Signature · 2 lines
ciao,
Marco

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel