Commit graph

19 commits

Author SHA1 Message Date
lars 7b0de22e3a * fixed some minor problems caused by revision [1162]
* try to refresh the block device cache once if a device was requested, that is currently not in the list (after a minimum cache age passed)
* added an implicit sorting function for block devices (based on major/minor values)
* try all found device nodes, in case the first does not exist anymore (e.g. temporary device nodes)
2009-06-11 09:30:17 +00:00
lars 6ad1523510 cryptonas blockdevice management:
* significantly reduced the time required for generating the block device list:
 * use a cache for major/minor -> device nodes mapping
 * run 'blkid' only once for LABEL, TYPE and UUID
* added some code for (optional) profiling via python-profiler
2009-06-10 17:45:58 +00:00
frisco 9add2a7b34 Fixed integration issue with cryptsetup; unit tests now pass 2009-05-25 02:37:15 +00:00
frisco 7032d06020 Fixed inconsistency in logging-related code; fixed size of unit test partitions to equal 50M each 2009-05-20 05:05:17 +00:00
age 9fa6376672 * cryptsetup demands running with uid=0 since v1.0.5 2008-04-07 10:42:37 +00:00
lars 81e5a2e8fd for self-test: handle TypeErrors nicely 2008-04-07 02:57:33 +00:00
lars eaf37a872a add "is_parent_of" function to blockdevice module
improve pre-defined exceptions
improve few failure behaviours
2008-02-17 18:10:38 +00:00
age 22eaddc496 * floppy disks are now unsupported
* ram disks are supported
2008-02-17 16:36:43 +00:00
lars cbb499e7e3 skip unreadable blockdevices (e.g. partitionable devices) 2008-01-28 21:41:55 +00:00
lars 9f23dbddfd finally fixed the size properly 2008-01-14 22:11:03 +00:00
lars 9bf82f30dc prolong lifetime of blockdevice cache to 120 seconds
fix blockdevice size calculation
respect "empty_cache" setting during blockdevice reset
2008-01-14 22:03:17 +00:00
lars 4c634d3f9a remember if lvm is not installed 2008-01-14 20:46:42 +00:00
lars a695d37b8c do not ignore used loop devices (size > 0)
fixed tests.cryptobox.py
2007-09-12 22:35:23 +00:00
lars 9c649312d0 adapt partition plugin to the new blockdevice implementation
reduce minimum storage block size from 20 to 10 (the config partition is small)
2007-09-11 10:22:48 +00:00
lars 1270b00a5f removed dependency on /dev/mapper location from container.py
replaced some functions in container.py with their new blockdevice.py counterparts
move "type_id" detection from container.py to blockdevice.py
reduce calls of "reset" for blockdevices
2007-08-20 11:21:56 +00:00
lars c8e28f5241 improved log messages
skip label detection for luks devices
finished change to new blockdevice handling
2007-08-18 00:19:32 +00:00
lars 35a6570a52 improved implementation of blockdevice cache
added UUID detection for blockdevices
changed interface of cryptobox.core.container and cryptobox.core.main for new blockdevice detection
 * beware: the change is not finished - the cryptobox is not working properly for now
2007-08-17 11:25:51 +00:00
lars b72310097c changed the interface of CryptoBoxRootActions: "allowedProgs" are now prefixed with the parameter "program"
added allowedProg "pvdisplay" to CryptoBoxRootActions to allow LVM detection
improved blockdevice handling: caching and detection of lvm, luks and raid
2007-08-16 16:13:04 +00:00
lars 53e09ff825 new approach for blockdevice detection and handling 2007-08-14 12:44:53 +00:00