Michal Privoznik
1c24cfe9d8
virNumaSetPagePoolSize: Produce friendlier error message
...
https://bugzilla.redhat.com/show_bug.cgi?id=1224587
The function takes two important arguments (among many others): @node
and @page_size. From these two a path under /sys is constructed. The
path is then used to read and write the desired size of huge pages
pool. However, if the path does not exists due to either @node or
@page_size having nonexistent value (e.g. there's no such NUMA node or
no page size like -2), an cryptic error message is produced:
virsh # allocpages --pagesize 2049 --pagecount 8 --cellno -2
error: Failed to open file '/sys/devices/system/node/node-2/hugepages/hugepages-2049kB/nr_hugepages': No such file or directory
Add two more checks to catch this and therefore produce much more
friendlier error messages.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2015-06-10 17:27:16 +02:00
..
2014-03-25 14:58:40 +01:00
2014-10-29 09:55:09 -06:00
2014-07-16 06:48:53 -06:00
2014-03-18 14:29:22 +00:00
2014-11-07 09:16:37 +01:00
2014-03-10 14:26:04 +01:00
2014-10-29 09:55:09 -06:00
2014-10-29 09:55:09 -06:00
2014-11-14 17:13:35 +01:00
2013-07-12 09:22:38 +02:00
2014-03-25 14:58:40 +01:00
2015-06-03 09:42:07 +02:00
2015-06-03 09:42:07 +02:00
2015-04-16 18:35:41 +02:00
2015-03-25 15:42:52 +01:00
2015-04-09 19:27:08 -04:00
2015-04-09 19:27:08 -04:00
2015-03-18 09:53:24 +01:00
2015-04-08 09:45:48 +02:00
2013-07-18 14:16:54 +02:00
2015-04-22 17:56:53 +03:00
2015-03-05 18:57:06 -05:00
2014-03-19 10:47:58 +00:00
2015-01-12 08:59:55 -05:00
2014-12-15 10:34:18 +01:00
2014-03-12 16:01:30 -06:00
2014-03-10 16:39:18 +00:00
2015-01-26 09:14:04 +00:00
2015-01-26 09:14:04 +00:00
2014-11-20 08:48:19 -07:00
2015-06-09 13:56:00 -04:00
2014-04-25 15:44:09 +01:00
2014-03-11 11:01:52 +00:00
2015-04-15 13:33:35 +02:00
2015-01-26 09:14:04 +00:00
2014-10-29 09:55:09 -06:00
2015-05-27 16:59:18 +02:00
2014-03-10 14:26:04 +01:00
2015-05-25 20:52:57 -04:00
2015-05-19 19:29:39 -04:00
2015-05-22 10:15:05 -04:00
2014-12-22 16:57:21 -05:00
2014-04-25 15:44:09 +01:00
2014-04-07 06:14:45 -06:00
2014-04-07 06:14:45 -06:00
2014-12-01 11:07:31 -05:00
2014-09-22 17:11:56 +02:00
2015-04-24 13:38:01 -04:00
2014-03-19 10:05:31 +01:00
2015-03-25 13:37:41 +01:00
2014-09-24 15:29:22 +01:00
2014-10-22 13:09:49 +01:00
2014-05-05 14:30:01 -06:00
2014-11-14 15:15:16 +00:00
2014-04-25 15:44:09 +01:00
2014-12-10 06:58:37 -05:00
2014-03-25 08:26:39 +01:00
2015-01-31 08:53:21 +01:00
2015-01-31 08:53:21 +01:00
2013-12-24 17:36:47 +01:00
2013-12-24 17:36:47 +01:00
2014-04-07 06:14:45 -06:00
2015-04-02 16:05:32 +02:00
2014-02-04 08:52:27 -05:00
2014-11-14 17:13:35 +01:00
2015-02-06 10:22:07 +00:00
2015-02-06 10:22:07 +00:00
2014-10-28 14:14:25 -04:00
2014-10-28 14:14:25 -04:00
2015-06-03 18:05:23 +02:00
2015-04-21 12:33:20 -04:00
2015-04-17 10:49:03 +02:00
2015-04-17 10:49:03 +02:00
2015-04-15 16:43:28 +02:00
2014-12-08 14:39:12 -05:00
2015-04-21 12:33:20 -04:00
2014-12-10 15:09:01 -05:00
2015-03-17 12:56:37 -04:00
2015-03-17 12:56:37 -04:00
2015-03-13 22:43:08 -04:00
2013-10-14 13:05:34 -06:00
2015-03-17 13:10:17 -04:00
2015-01-15 11:07:13 +00:00
2015-04-15 16:43:28 +02:00
2013-10-14 13:05:34 -06:00
2013-10-14 13:05:34 -06:00
2015-03-17 13:09:05 -04:00
2015-03-17 12:56:37 -04:00
2015-03-27 11:06:05 +01:00
2015-03-26 15:29:42 -04:00
2014-04-14 18:19:36 +02:00
2015-06-10 17:27:16 +02:00
2014-12-16 11:15:27 +01:00
2015-05-11 08:28:53 +02:00
2015-05-11 08:28:53 +02:00
2015-04-24 10:47:41 +02:00
2015-01-14 18:01:06 +01:00
2015-06-09 13:56:00 -04:00
2014-11-03 16:43:23 +01:00
2014-11-19 08:20:39 -07:00
2014-09-24 15:29:22 +01:00
2015-03-13 15:31:33 +01:00
2014-09-11 15:40:14 -06:00
2015-01-15 11:07:13 +00:00
2015-06-08 11:27:39 +04:00
2015-06-03 14:20:25 +02:00
2015-04-14 13:24:51 -06:00
2014-06-23 14:16:23 +02:00
2014-03-04 12:24:13 +00:00
2014-07-14 05:44:20 -04:00
2014-07-11 10:36:02 +02:00
2014-11-14 17:13:35 +01:00
2015-06-03 12:54:32 +02:00
2015-06-02 12:40:07 -04:00
2014-09-17 11:28:48 -06:00
2014-09-17 11:28:48 -06:00
2014-11-14 17:13:35 +01:00
2014-06-20 09:14:46 +02:00
2015-04-27 15:37:13 +02:00
2015-04-13 15:07:45 +02:00
2015-04-24 13:40:41 +02:00
2015-04-15 18:41:20 +02:00
2015-05-26 19:57:15 -04:00
2014-05-05 14:30:01 -06:00
2015-01-27 13:57:02 +00:00
2015-01-15 11:07:07 +00:00
2015-04-16 15:39:22 +02:00
2015-03-25 10:00:53 +01:00
2015-03-25 10:00:53 +01:00
2015-03-25 10:00:53 +01:00
2015-05-21 14:35:02 +02:00
2015-03-25 10:00:53 +01:00
2014-10-28 14:44:18 -06:00
2014-07-25 12:06:07 +02:00
2014-03-25 14:58:40 +01:00
2014-09-04 15:18:43 -06:00
2013-06-25 00:38:25 +02:00
2014-10-15 09:25:33 +02:00
2014-07-03 10:41:15 +02:00
2014-03-04 12:24:13 +00:00
2015-06-08 09:32:24 +02:00
2015-06-03 09:42:08 +02:00
2014-03-20 17:16:18 +01:00
2014-01-02 22:17:11 -07:00
2015-01-15 14:02:50 +00:00
2015-01-15 14:02:50 +00:00