https://bugzilla.novell.com/show_bug.cgi?id=732927 https://bugzilla.novell.com/show_bug.cgi?id=732927#c3 Li Bin <bili@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO InfoProvider| |roland@logikalsolutions.com --- Comment #3 from Li Bin <bili@suse.com> 2011-11-29 03:20:05 UTC --- Roland, It's caused by kernel's change, now it need the root permission. We can apply the upstream patch to prompt a friendly message. You can view more info from below link, is it okay? commit 635b5838e95ed85767434207e463173fd91b6040 Author: Guillaume Chazarain <guichaz@gmail.com> Date: Sat Oct 15 18:39:32 2011 +0200 Explain that iotop now requires root. https://lkml.org/lkml/2011/10/1/170 http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdif... diff --git a/iotop/ui.py b/iotop/ui.py index ef2b3a6..e8da128 100644 --- a/iotop/ui.py +++ b/iotop/ui.py @@ -458,10 +458,19 @@ def run_iotop_window(win, options): ui.run() def run_iotop(options): - if options.batch: - return run_iotop_window(None, options) - else: - return curses.wrapper(run_iotop_window, options) + try: + if options.batch: + return run_iotop_window(None, options) + else: + return curses.wrapper(run_iotop_window, options) + except OSError, e: + if e.errno == errno.EPERM: + print >> sys.stderr, e + print >> sys.stderr, ('iotop requires root or the NET_ADMIN ' + 'capability.') + sys.exit(1) + else: + raise -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.