Commit graph

73 commits

Author SHA1 Message Date
lars 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
lars 4f24c813cd * changed definition of storage device: only "valid" devices are available now 2009-06-13 12:22:53 +00:00
lars b5c4eabc26 * excluded ram block devices from the "valid" list of devices (Closes: #196) 2009-06-13 02:23:35 +00:00
lars 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
lars 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
lars 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
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
frisco f2d88519b0 Possible fix for one unit test 2009-02-28 07:27:02 +00:00
lars 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
lars 54d69c506e CryptoNAS default configuration:
* fixed broken default values (reported by Stefan)
2009-01-07 00:47:39 +00:00
lars 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
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
age 5aba14b469 * device list as explicit list 2008-02-17 16:25:03 +00:00
age b5374d1088 * added log message 2008-01-31 10:17:49 +00:00
lars 689ccc7e0c accept spaces in container names
handle non-existent event plugin directory gracefully
2008-01-30 10:01:25 +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
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
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
age e6965127e8 * fixed typo
* new balck/green ascii theme (the nerdy one)
2007-08-21 09:02:10 +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 3224d59dfe change identation from tabs to spaces 2007-08-18 00:45:12 +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
age 56584aef69 * filesystem determination works with encrypted containers 2007-08-12 09:35:26 +00:00
lars 7c2709e643 fixed svn:keyword tag 'Id' in various python files 2007-03-21 18:35:31 +00:00
age d4fe2145e4 * not sure what TODO here 2007-03-06 10:04:17 +00:00
age ba0c164e94 plugin volume_details shows filesystem 2007-03-03 00:51:35 +00:00
age e10e86e511 * added some (all tested) filesystems for mounting
* ntfs is read-only
  * we could use ntfs-3g, which works fine for writing but is not used automatically by mount
2007-03-02 19:49:16 +00:00
age bdba5dd4f5 * xfs mounting works, too 2007-03-02 00:46:19 +00:00
age 6266c1f124 * added help content for disk overview
* legend for disk icons
 * larger disk icons
2007-02-25 01:01:33 +00:00
lars 1de2ebe176 make blkid more verbose
fix permission problem during bootup (Closes: #139)
add support for partitioning of blockdevices ending in a digit (e.g. raid (md) devices)
added fieldset to partition plugin
2007-02-19 01:22:31 +00:00
lars 2ce5e0fab6 fix broken typing in get_blockdevice_size_humanly (thanks to Steffen for reporting) 2007-02-09 20:40:01 +00:00
lars 514f008b70 fixed plural forms or urdu and some encrypted_webinterface language files
fixed "isWriteable" check of CryptoBoxRootActions - failed on live-cd before
fixed exception handling for "create_misc_config_file"
2007-02-08 21:29:57 +00:00
lars 5ea8e7836d fixed some unittests 2007-02-03 11:40:22 +00:00
lars 2cac563bea ignore non-readable or non-writeable block devices
added sources for help_browser_disable icon
2007-02-02 08:57:46 +00:00
lars acac61fcbd always umount config partitions during shutdown - otherwise tmpfs would stay mounted
prepare the "help" dataset values for multiple reloading of the dataset
clarify text for no-write-allowed
keep only some specific link parameters during dis/enabling help
2007-01-31 00:25:26 +00:00