dead code in persistent tape rules
Hi there!
I think last commit to udev (persistent device naming: tape devices and medium changers) contains strange rules that may be thought to look other way. This is how they look now (60-persistent-storage.rules):
ACTION!="add", GOTO="persistent_storage_end"
ACTION!="add", GOTO="persistent_tape_end"
Second jump is never reached (as then first already branched to persistent_storage_end), perhaps that should be SUBSYSTEMS!="scsi" or similar.
Matthias
Signature · 11 lines
Matthias Schwarzott (zzam) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 8 lines · Matthias Schwarzott
Hi there!
I think last commit to udev (persistent device naming: tape devices and medium changers) contains strange rules that may be thought to look other way. This is how they look now (60-persistent-storage.rules):
ACTION!="add", GOTO="persistent_storage_end"
ACTION!="add", GOTO="persistent_tape_end"
Whoops, that's mine.
In an earlier attempt of mine, this block of rules was in a different file and I kept this check.
Quoted 4 lines
Second jump is never reached (as then first already branched to
persistent_storage_end), perhaps that should be SUBSYSTEMS!="scsi" or similar.
As you mention, the 2nd ACTION check could be changed to check for SCSI, something like:
SUBSYSTEMS!="scsi", GOTO="persistent_tape_end"
or both references to persistent_tape_end could be removed. I don't think I have a preference.
Quoted 5 lines
Matthias
Signature · 1 line
Matthias Schwarzott (zzam)
Thanks,
Jamie
Quoted 11 lines
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 17 lines · Jamie Wellnitz
Quoted 6 lines · Matthias Schwarzott
I think last commit to udev (persistent device naming: tape devices and medium changers) contains strange rules that may be thought to look other way. This is how they look now (60-persistent-storage.rules):
ACTION!="add", GOTO="persistent_storage_end"
ACTION!="add", GOTO="persistent_tape_end"Whoops, that's mine.
In an earlier attempt of mine, this block of rules was in a different file and I kept this check.
Quoted 3 lines
Second jump is never reached (as then first already branched to
persistent_storage_end), perhaps that should be SUBSYSTEMS!="scsi" or similar.
Quoted 7 lines
As you mention, the 2nd ACTION check could be changed to check for SCSI, something like:
SUBSYSTEMS!="scsi", GOTO="persistent_tape_end"
or both references to
persistent_tape_endcould be removed. I don't think I have a preference.
I've removed the jump and the label.
Thanks,
Kay
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 23 lines · Kay Sievers
Quoted 22 lines · Jamie Wellnitz
Quoted 1 line · Matthias Schwarzott
I think last commit to udev (persistent device naming: tape devices and
medium
Quoted 1 line
changers) contains strange rules that may be thought to look other way.
This
Quoted 4 lines
is how they look now (60-persistent-storage.rules):
ACTION!="add", GOTO="persistent_storage_end"
ACTION!="add", GOTO="persistent_tape_end"Whoops, that's mine.
In an earlier attempt of mine, this block of rules was in a different file and I kept this check.
Quoted 3 lines
Second jump is never reached (as then first already branched to
persistent_storage_end), perhaps that should be SUBSYSTEMS!="scsi" or similar.As you mention, the 2nd ACTION check could be changed to check for SCSI, something like:
Quoted 6 lines
Quoted 4 lines
SUBSYSTEMS!="scsi", GOTO="persistent_tape_end"
or both references to
persistent_tape_endcould be removed. I don't think I have a preference.I've removed the jump and the label.
Thanks. Sorry about the dead code.
Quoted 4 lines
Thanks,
Kay
Jamie
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel