Commit graph

122 commits

Author SHA1 Message Date
frisco
bf7e8cd156 Added method is_debian_live() to identify Debian Live media and loop devices 2009-06-22 03:08:59 +00:00
a6aaba642e * adapted unittest to new block device object 2009-06-16 02:19:06 +00:00
8e9f5eedc2 * use "hashlib" instead of "sha" (deprecated since python2.6) if available 2009-06-16 02:16:29 +00:00
d5dce0887a * adapt block device handling to linux kernel >v2.6.26 (symlinks in /sys/block/)
* turned all attributes of the "Blockdevice" class into properties (postponing evaluation)
* unify cache_links for blockdevice information
* add default location of config file to preferences handling
2009-06-16 01:58:29 +00:00
4f24c813cd * changed definition of storage device: only "valid" devices are available now 2009-06-13 12:22:53 +00:00
b5c4eabc26 * excluded ram block devices from the "valid" list of devices (Closes: #196) 2009-06-13 02:23:35 +00:00
f389508ed8 * changed importance of some log messages
* use "sfdisk -R" instead of "blockdev --rereadpt" in order to avoid an additinal dependency
* removed obsolete sort function for block devices
2009-06-12 01:48:22 +00:00
ffb8f841be * change default indentation (as checked by pylint) from tab to spaces
* changed default behaviour of pylint wrapper script: check _everything_ if no parameters are given
2009-06-12 01:40:26 +00:00
fe0a062bf6 * added code to catch some more error conditions
* slightly changed the structure of the block device cache
2009-06-11 23:20:23 +00:00
864d7091f6 * don't refresh the whole device list after each plugin run, but just refresh the current device 2009-06-11 23:14:58 +00:00
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
22021866b4 * added a (non-linked) url to access the list of recognized block devices 2009-06-11 09:24:03 +00:00
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
9cd3d7dd42 Now calls "/sbin/blockdev --rereadpt" after any changes to partition tables; should fix bug #214 2009-05-29 05:56:14 +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
frisco
615073e02c Changes to use unit tests in non-User Mode Linux environment; merged cryptobox.conf into
cryptobox-unittests.conf
2009-05-11 10:02:49 +00:00
frisco
f2d88519b0 Possible fix for one unit test 2009-02-28 07:27:02 +00:00
4301427e26 CryptoNAS config validation:
* adapt to changes in configobj (v4.3.2 -> v4.5.2) - Closes #218
* workaround a misbehaviour of configobj for lists with only one item - Closes: #219
2009-01-07 03:34:48 +00:00
54d69c506e CryptoNAS default configuration:
* fixed broken default values (reported by Stefan)
2009-01-07 00:47:39 +00:00
0541981452 fix the 'test_allowed_devices' unittest 2008-07-17 19:54:06 +00:00
3e79c98545 fixed two unittests 2008-07-17 18:10:48 +00:00
87289af11a fix remaining issue of cryptsetup v1.0.5 (continues r1102) 2008-07-09 23:49:08 +00:00
age
916b4bebce * fixed typo 2008-04-19 08:44:53 +00:00
age
9fa6376672 * cryptsetup demands running with uid=0 since v1.0.5 2008-04-07 10:42:37 +00:00
81e5a2e8fd for self-test: handle TypeErrors nicely 2008-04-07 02:57:33 +00:00
b0d2a2deae fix call of test function 2008-02-18 19:28:19 +00:00
age
35bed3b4e6 * fixed network unittests
* disabled unfinished blockdevice test
2008-02-18 11:01:44 +00:00
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
b1c733cd52 update blockdevice unittests to new blockdevice module
use ramX instead of loopX
2008-02-17 18:08:26 +00:00
age
e8a4edee6a * use ram instaed of loop device for unittests 2008-02-17 16:37:44 +00:00
age
22eaddc496 * floppy disks are now unsupported
* ram disks are supported
2008-02-17 16:36:43 +00:00
age
5aba14b469 * device list as explicit list 2008-02-17 16:25:03 +00:00
age
085a0daa95 * reduced size for test partitions 2008-02-17 14:22:33 +00:00
age
b5374d1088 * added log message 2008-01-31 10:17:49 +00:00
689ccc7e0c accept spaces in container names
handle non-existent event plugin directory gracefully
2008-01-30 10:01:25 +00:00
cbb499e7e3 skip unreadable blockdevices (e.g. partitionable devices) 2008-01-28 21:41:55 +00:00
age
6f05e1d091 * reverted changes [996] and [998] for good old logfile download 2008-01-15 00:14:19 +00:00
9f23dbddfd finally fixed the size properly 2008-01-14 22:11:03 +00:00
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
0eccca7d22 use short device name for tests
update order and content of default test block devices
2008-01-14 20:48:23 +00:00
4c634d3f9a remember if lvm is not installed 2008-01-14 20:46:42 +00:00
f239a27169 handle invalid plugins patiently 2008-01-14 20:45:14 +00:00
6ca9c5d19a fix invalid argument type 2008-01-14 20:43:39 +00:00
age
66cf3a013e * sed in the webdav event script now works
* share names must not have any whitespaces
2008-01-09 00:29:41 +00:00
age
bacd63be6c fixed the lang.sort fix 2007-11-25 09:21:03 +00:00
age
007137d6a9 fixes language sort problem, for just one language 2007-11-20 11:58:58 +00:00
8817ede76a unittest of 'disk' plugin fixed 2007-09-15 19:48:31 +00:00
a695d37b8c do not ignore used loop devices (size > 0)
fixed tests.cryptobox.py
2007-09-12 22:35:23 +00:00
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