564e7d37 | 10-Aug-2015 |
Andreas Jaekel <jaekel@strato-rz.de> |
zev: workaround: mount cb bails for failed mount
The zev mount callback got called for failed mounts, which then crashed the system when the callback tried to access zfsvfs data. A fix in zfs_mount(
zev: workaround: mount cb bails for failed mount
The zev mount callback got called for failed mounts, which then crashed the system when the callback tried to access zfsvfs data. A fix in zfs_mount() was written, but since updating the zfs module is painful we also work around this problem from inside the callback, so that only the zev module needs to be updated.
Seperate commit so it can be backported to earlier titanic releases.
(cherry picked from commit 06a9f6b8e3d58ecf30294ed84afa5b700aed283d)
show more ...
|
a287bd3a | 20-Jul-2015 |
Andreas Jaekel <jaekel@strato-rz.de> |
zev: lock zfsvfs for znode operations
Akin to zfs' other znode ops, zev now uses (a modified version of) ZFS_ENTER, ZFS_VERIFY_ZP and ZFS_EXIT to protect against operations on unmounted object sets.
zev: lock zfsvfs for znode operations
Akin to zfs' other znode ops, zev now uses (a modified version of) ZFS_ENTER, ZFS_VERIFY_ZP and ZFS_EXIT to protect against operations on unmounted object sets. This only concerns the get_checksums ioctl. All other znode ops are callbacks from inside zfs znode ops, so the locks were already held.
(cherry picked from commit f8d4f0f619a3e7597825fb95d1aa6dc322694d3c)
show more ...
|
d5b96be3 | 10-Jul-2015 |
Andreas Jaekel <jaekel@strato-rz.de> |
zev: bugfix: device nodes remained for delete queues
devfs_clean() is used to remove old device nodes. It requires a dev_info_t as a starting point. The zev instance's dev_info_t was used but didn
zev: bugfix: device nodes remained for delete queues
devfs_clean() is used to remove old device nodes. It requires a dev_info_t as a starting point. The zev instance's dev_info_t was used but didn't work. ddi_root_node() is now used, which returns top_devinfo.
(cherry picked from commit 85dcc477b9e19a46828540f27460c39ec7d9acb3)
show more ...
|
1756dea7 | 08-Jul-2015 |
Andreas Jaekel <jaekel@strato-rz.de> |
zev: fix: tmpqueues should be initially empty
When creating temporary queues dynamically, (by opening the tmpqueue device) the resulting queue should start empty and not contain any old events.
(ch
zev: fix: tmpqueues should be initially empty
When creating temporary queues dynamically, (by opening the tmpqueue device) the resulting queue should start empty and not contain any old events.
(cherry picked from commit e61588a30d771b9cef4272cc070900ddfca2caf1)
show more ...
|
6450d95e | 08-Jul-2015 |
Andreas Jaekel <jaekel@strato-rz.de> |
zev: dynamically create temporary queues
The zev driver can now create new ephemeral queues in the fly.
When the tmpqueue device is opened, a new non-persistent queue is created and the userland ca
zev: dynamically create temporary queues
The zev driver can now create new ephemeral queues in the fly.
When the tmpqueue device is opened, a new non-persistent queue is created and the userland can immediatly use it as though the tmpqueue device itself was a valid queue device. As soon as the device is closed the temporary queue is removed.
This should make using tmp queues easier. It is no longer necessary to find or generate a free queue name, and tmp queues opened via the tmpqueue device can not be orphaned - they are already opened when they are created. Using the old method a userland process might crash or forget about a tmp queue it has created - which would then remain in the queue list indefinitly.
(cherry picked from commit 441d11320a78072d7e6d87230d4271396bf53648)
show more ...
|
b909fa07 | 07-Jul-2015 |
Andreas Jaekel <jaekel@strato-rz.de> |
zev: bugfix: device files are removed correctly
When a queue is removed the corresponding /devices special files were not correctly removed aswell. To achieve that, it is necessary to call devfs_cl
zev: bugfix: device files are removed correctly
When a queue is removed the corresponding /devices special files were not correctly removed aswell. To achieve that, it is necessary to call devfs_clean() using the DV_CLEAN_FORCE flag. This is now done and the device files dissapear as one would expect.
(cherry picked from commit c9ca1789b5c8ee2493129f0c6ba97999e110d893)
show more ...
|
9ae8ebd1 | 06-Jul-2015 |
Andreas Jaekel <jaekel@strato-rz.de> |
zev: bugfix: missing mutex protection
In certain circuumstances zev_hold_queue() was called without acquiring the necessary mutex first. I have not found any code in zevadm or beaverd that might ac
zev: bugfix: missing mutex protection
In certain circuumstances zev_hold_queue() was called without acquiring the necessary mutex first. I have not found any code in zevadm or beaverd that might actually trigger this bug, though.
(cherry picked from commit 2999edecce9b37a4cb1afce74f711ecc92a24d35)
show more ...
|
ec4d6322 | 30-Jun-2015 |
Andreas Jaekel <jaekel@strato-rz.de> |
zev: bugfix: some queues were blocking too early
Under certain conditions, zev queues would block too soon or for the wrong queues: if the max queue limit was reached and there was a queue with the
zev: bugfix: some queues were blocking too early
Under certain conditions, zev queues would block too soon or for the wrong queues: if the max queue limit was reached and there was a queue with the block flag, zev would block new messages, even if the blocking queue wasn't full.
(cherry picked from commit b0e9cea3504949d7ad8e034834f531716cb8d908)
show more ...
|
f5ef1346 | 29-Jun-2015 |
Andreas Jaekel <jaekel@strato-rz.de> |
zev: use devfs_cleanup to remove unused entries
Old device files under /devices/pseudo are no longer cleaned up when the queue is no longer used. Calling devfs_cleanup() was suggested to trigger th
zev: use devfs_cleanup to remove unused entries
Old device files under /devices/pseudo are no longer cleaned up when the queue is no longer used. Calling devfs_cleanup() was suggested to trigger this.
(cherry picked from commit 62b114c4754a2ea0f22c1bc9d1455494a4010f99)
show more ...
|
dc1d6f1a | 29-Jun-2015 |
Andreas Jaekel <jaekel@strato-rz.de> |
zev: bugfix: fix modinfo version string
The modinfo string has a marco to show the zev modules version information. That macro was not correctly expanded and the macro's name was shown instead.
(c
zev: bugfix: fix modinfo version string
The modinfo string has a marco to show the zev modules version information. That macro was not correctly expanded and the macro's name was shown instead.
(cherry picked from commit 87604a728c4afb2050560da461653ca42fc38944)
show more ...
|
bdbd253b | 11-Feb-2015 |
Andreas Jaekel <jaekel@strato-rz.de> |
zev: filter events outside of HiDrive spaces
To reduce load on the beaver daemon we do not report events that are not from a production HiDrive filesystem containing customer data, recognized by the
zev: filter events outside of HiDrive spaces
To reduce load on the beaver daemon we do not report events that are not from a production HiDrive filesystem containing customer data, recognized by the string "_root" anyhere in the dataset name.
(cherry picked from commit f13bc8390f84fee6da73e746d0d788b9fa771e3d)
show more ...
|
f8e3fee2 | 25-Nov-2014 |
Andreas Jaekel <jaekel@strato-rz.de> |
zev: added inode info of clobbered files (rename)
When a file is renamed, another file might previously have had the new name and will thus be clobbered. In this case, the inode information of the
zev: added inode info of clobbered files (rename)
When a file is renamed, another file might previously have had the new name and will thus be clobbered. In this case, the inode information of the clobbered file will be added to the zev rename event. Note that the file might still have other names.
(cherry picked from commit 9ed9bfe91df7eb8d10c125f9f04d3ec82010930a)
show more ...
|
c2200253 | 12-Nov-2014 |
Andreas Jaekel <jaekel@strato-rz.de> |
zev: add l0 checksum to truncates at offset 4096
Since the beaverd doesn't store l0 checksums for files larger than 4k, we need a way to get that checksum if a file shrinks to 4k. This worked if it
zev: add l0 checksum to truncates at offset 4096
Since the beaverd doesn't store l0 checksums for files larger than 4k, we need a way to get that checksum if a file shrinks to 4k. This worked if it was shrunk to < 4k already, but now we've added a special handling for truncates to exactly 4k file size.
(cherry picked from commit 1a8183867382c3f077234868042bb9963d638749)
show more ...
|
f96935a8 | 06-Oct-2014 |
Andreas Jaekel <jaekel@strato-rz.de> |
zev: fixed off-by-one error in cache invalidation
If only the first byte in a 4k block was written, the cache invalidation function would erroneously not expire that block's checksum.
(cherry picke
zev: fixed off-by-one error in cache invalidation
If only the first byte in a 4k block was written, the cache invalidation function would erroneously not expire that block's checksum.
(cherry picked from commit cefd41bc3095dacd89bd6a0a458d5873ff75e19a)
show more ...
|