Revision 7c0aa8e9 lib/backend.py
b/lib/backend.py | ||
---|---|---|
522 | 522 |
used_minors = str(err) |
523 | 523 |
result[constants.NV_DRBDLIST] = used_minors |
524 | 524 |
|
525 |
if constants.NV_NODESETUP in what: |
|
526 |
result[constants.NV_NODESETUP] = tmpr = [] |
|
527 |
if not os.path.isdir("/sys/block") or not os.path.isdir("/sys/class/net"): |
|
528 |
tmpr.append("The sysfs filesytem doesn't seem to be mounted" |
|
529 |
" under /sys, missing required directories /sys/block" |
|
530 |
" and /sys/class/net") |
|
531 |
if (not os.path.isdir("/proc/sys") or |
|
532 |
not os.path.isfile("/proc/sysrq-trigger")): |
|
533 |
tmpr.append("The procfs filesystem doesn't seem to be mounted" |
|
534 |
" under /proc, missing required directory /proc/sys and" |
|
535 |
" the file /proc/sysrq-trigger") |
|
525 | 536 |
return result |
526 | 537 |
|
527 | 538 |
|
Also available in: Unified diff