bugzilla-daemon at defect.opensolaris.org
2008-Apr-18 18:49 UTC
[Bug 1336] zfs key -l on keyscope=dataset does not mount
http://defect.opensolaris.org/bz/show_bug.cgi?id=1336
ajscarp at yahoo.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ACCEPTED
--- Comment #1 from ajscarp at yahoo.com 2008-04-18 11:49:20 ---
There is either a caching problem with the property that is a zfs problem, or
we are doing something wrong.. The zfs team has been asked if there is
something wrong..
message to zfs-code:
Click to edit this message... Click to reply to this thread Reply
Hey...
So in zfs-crypto land we are finding one of our properties is caching and not
being updated for the ''zfs'' command to finish.
Here''s the situation:
We start off with an encrypted dataset that has a "keystatus" property
of
"unavailable". The keystatus is the load status of the key. We now
load the key
for an encrypted dataset via the new ''zfs key -l'' command. The
libzfs function
does an ioctl to the kernel to load the key data and additionally sets the
"keystatus" property to "available".
The problem happens, and this is all in the same process, after the ioctl has
finished with a successful key load and we are back in the libzfs code, a
mounting operation is done on the dataset which calls a check (in
zfs_is_mountable) on the "keystatus". The "keystatus"
property still has the
old value of "unavailable". But we are certain the property has been
changed.
When a followup command (separate process) of ''zfs mount'' is
run it succeeds
and ''zfs get keysource'' reports the status as
"available".
Is there a function call required in the kernel to refresh the properties? Does
the library need to refresh the properties, if so is there an existing function
to do that? Or are we seeing a bug somewhere?
thanks
Tony
--
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
bugzilla-daemon at defect.opensolaris.org
2008-Apr-20 17:29 UTC
[Bug 1336] zfs key -l on keyscope=dataset does not mount
http://defect.opensolaris.org/bz/show_bug.cgi?id=1336
ajscarp at yahoo.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ACCEPTED |FIXUNDERSTOOD
--- Comment #2 from ajscarp at yahoo.com 2008-04-20 10:29:24 ---
found userland function: zfs_refresh_properties()..
--
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
bugzilla-daemon at defect.opensolaris.org
2008-May-02 21:37 UTC
[Bug 1336] zfs key -l on keyscope=dataset does not mount
http://defect.opensolaris.org/bz/show_bug.cgi?id=1336
ajscarp at yahoo.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|FIXUNDERSTOOD |RESOLVED
Resolution| |FIXINSOURCE
--
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.