This repository has been archived by the owner on Nov 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
pmempool info: different outputs when run on unaccessible parts (in sense of permissions) #815
Comments
krzycz
added a commit
to krzycz/pmdk
that referenced
this issue
Feb 26, 2018
In some cases, pmempool used to report "Invalid argument" error, while the actual problem was different, i.e. "Permission denied". Ref: pmem/issues#815
krzycz
added a commit
to krzycz/pmdk
that referenced
this issue
Feb 26, 2018
In some cases, pmempool used to report "Invalid argument" error, while the actual problem was different, i.e. "Permission denied". Ref: pmem/issues#815
krzycz
added a commit
to krzycz/pmdk
that referenced
this issue
Feb 26, 2018
In some cases, pmempool used to report "Invalid argument" error, while the actual problem was different, i.e. "Permission denied". Ref: pmem/issues#815
krzycz
added a commit
to krzycz/pmdk
that referenced
this issue
Feb 26, 2018
In some cases, pmempool used to report "Invalid argument" error, while the actual problem was different, i.e. "Permission denied". Ref: pmem/issues#815
krzycz
added a commit
to krzycz/pmdk
that referenced
this issue
Feb 27, 2018
In some cases, pmempool used to report "Invalid argument" error, while the actual problem was different, i.e. "Permission denied". Ref: pmem/issues#815
After pulling the latest version I checked results of performing pmempool info in conditions described in issue and this is what I got:
Now the result is even stranger; instead of "Invalid argument" I got "cannot determine type of pool". Checked on: pmempool 1.4-rc1-44-g82a8572f4 |
igchor
pushed a commit
to igchor/pmdk
that referenced
this issue
Mar 5, 2018
In some cases, pmempool used to report "Invalid argument" error, while the actual problem was different, i.e. "Permission denied". Ref: pmem/issues#815
igchor
added a commit
to igchor/pmdk
that referenced
this issue
Sep 14, 2018
when run on dev dax with wrong access permissions. Now, pmempool info prints "Permission denied" when dev dax is either read only or write only. Ref: pmem/issues#815
igchor
added a commit
to igchor/pmdk
that referenced
this issue
Sep 14, 2018
when run on dev dax with wrong access permissions. Now, pmempool info prints "Permission denied" when dev dax is either read only or write only. Ref: pmem/issues#815
igchor
added a commit
to igchor/pmdk
that referenced
this issue
Sep 14, 2018
When os_open fails for reason other than ENOENT we should set errno appropriately. Ref: pmem/issues#815 Now, pmempool info prints "Permission denied" when dev dax is either read only or write only.
igchor
added a commit
to igchor/pmdk
that referenced
this issue
Sep 17, 2018
util_file_is_device_dax function missed proper error handling. New util_file_get_type will check for errors and return -1 on failure or one of the following values on success: FILE_TYPE_DEVDAX, FILE_TYPE_NORMAL Ref: pmem/issues#815 Now, pmempool info prints "Permission denied" when dev dax is either read only or write only.
igchor
added a commit
to igchor/pmdk
that referenced
this issue
Sep 18, 2018
util_file_is_device_dax function missed proper error handling. New util_file_get_type will check for errors and return -1 on failure or one of the following values on success: FILE_TYPE_DEVDAX, FILE_TYPE_NORMAL Ref: pmem/issues#815 Now, pmempool info prints "Permission denied" when dev dax is either read only or write only.
igchor
added a commit
to igchor/pmdk
that referenced
this issue
Sep 18, 2018
util_file_is_device_dax function missed proper error handling. New util_file_get_type will check for errors and return -1 on failure or one of the following values on success: FILE_TYPE_DEVDAX, FILE_TYPE_NORMAL Ref: pmem/issues#815 Now, pmempool info prints "Permission denied" when dev dax is either read only or write only.
igchor
added a commit
to igchor/pmdk
that referenced
this issue
Sep 18, 2018
util_file_is_device_dax function missed proper error handling. New util_file_get_type will check for errors and return -1 on failure or one of the following values on success: FILE_TYPE_DEVDAX, FILE_TYPE_NORMAL Ref: pmem/issues#815 Now, pmempool info prints "Permission denied" when dev dax is either read only or write only.
igchor
added a commit
to igchor/pmdk
that referenced
this issue
Sep 21, 2018
util_file_is_device_dax function missed proper error handling. New util_file_get_type will check for errors and return either OTHER_ERROR or NOT_EXISTS or one of the following values on success: TYPE_DEVDAX, TYPE_NORMAL Ref: pmem/issues#815 Now, pmempool info prints "Permission denied" when dev dax is either read only or write only.
igchor
added a commit
to igchor/pmdk
that referenced
this issue
Sep 21, 2018
util_file_is_device_dax function missed proper error handling. New util_file_get_type will check for errors and return either OTHER_ERROR or NOT_EXISTS or one of the following values on success: TYPE_DEVDAX, TYPE_NORMAL Ref: pmem/issues#815 Now, pmempool info prints "Permission denied" when dev dax is either read only or write only.
igchor
added a commit
to igchor/pmdk
that referenced
this issue
Sep 21, 2018
util_file_is_device_dax function missed proper error handling. New util_file_get_type will check for errors and return either OTHER_ERROR or NOT_EXISTS or one of the following values on success: TYPE_DEVDAX, TYPE_NORMAL Ref: pmem/issues#815 Now, pmempool info prints "Permission denied" when dev dax is either read only or write only.
igchor
added a commit
to igchor/pmdk
that referenced
this issue
Sep 21, 2018
util_file_is_device_dax function missed proper error handling. New util_file_get_type will check for errors and return either OTHER_ERROR or NOT_EXISTS or one of the following values on success: TYPE_DEVDAX, TYPE_NORMAL Ref: pmem/issues#815 Now, pmempool info prints "Permission denied" when dev dax is either read only or write only.
igchor
added a commit
to igchor/pmdk
that referenced
this issue
Sep 24, 2018
util_file_is_device_dax function missed proper error handling. New util_file_get_type will check for errors and return either OTHER_ERROR or NOT_EXISTS or one of the following values on success: TYPE_DEVDAX, TYPE_NORMAL Ref: pmem/issues#815 Now, pmempool info prints "Permission denied" when dev dax is either read only or write only.
Verified on 1.4-rc4-1020-gde2c9dc7a |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Let's consider the following poolset file:
Existence of poolset option is optional :) (with or without it the result is the same).
After creating the poolset file you:
pmempool create blk 512 /home/nuser/pool.set
chmod 662 /dev/dax0.0
runuser -l nuser -c "pmempool info /home/nuser/pool.set"
The sample course:
As you can see, depending on part's access rights, you get different return messages from pmempool info:
Found on: pmempool 1.3+b2-919-gaac995ff0
The text was updated successfully, but these errors were encountered: