# mailto:the_Arioch@nm.ru, xmpp:arioch@jabber.ru # # I want to be able to easily look for dev name by major and minor numbers # for example - from scripts # So i think of having dedicated folder for symlinks to devices # # I should check that symlinks are not overwitten - i saw udftools' pktsetup # created 2 block dev-inodes per drive ! # After all, pktsetup creates its fantom by direct mknod w/o udev interaction, # but i found a number of other dups # PROGRAM="/bin/sh -c ' [ -e %r/.lookup_by_numbers/major%M@minor%m ] ' ", SYMLINK+=".lookup_by_numbers/DUP/major%M@minor%m_DUP%e" # this rule makes easy check if any duplicate exist - dups are stored in separate dir # enter with Midnight Commander / Nautilu / Konqueror etc - and if You can see DUP folder... PROGRAM="/bin/sh -c ' [ -e %r/.lookup_by_numbers/major%M@minor%m ] ' ", SYMLINK+=".lookup_by_numbers/DUP/major%M@minor%m_DUP%e" # this rule makes easy matching - scroll through symlinks - and all DUPs and 1st link are together PROGRAM="/bin/sh -c ' [ ! -e %r/.lookup_by_numbers/major%M@minor%m ] ' ", SYMLINK+=".lookup_by_numbers/major%M@minor%m"