History log of /titanic_50/usr/src/uts/common/fs/zev/sys/zev_checksums.h (Results 1 – 3 of 3)
Revision Date Author Comments
# 1ca5a13b 22-Jul-2014 Andreas Jaekel <jaekel@strato-rz.de>

zev: create and symlink events now inlude checksum

When a symlink or another new file is created, the resulting
zev events now include a signature for the new file.

Symlinks are treated like files

zev: create and symlink events now inlude checksum

When a symlink or another new file is created, the resulting
zev events now include a signature for the new file.

Symlinks are treated like files that contain the "link" part
as text. Block and character devices have a signature based
on the format string "%c%d,%d", with 'b'/'c', getmajor() and
getminor() as values. All other file types will result in an
all-zero signature.

Hardlinks create a new directory entry, but no new inode.
Therefore, rdlink events still do not contain a signature.

(cherry picked from commit d27baf235074c236575a6c7ec7d3fe89a7d8af6e)

show more ...


# b9710123 22-May-2014 Andreas Jaekel <jaekel@strato-rz.de>

zev: ioctl() to get signatures for an open file

There's a new ioctl() ZEV_IOC_GET_FILE_SIGNATURES to get
beaver signatures for a data range in an open file. The
provided buffer has to be large enou

zev: ioctl() to get signatures for an open file

There's a new ioctl() ZEV_IOC_GET_FILE_SIGNATURES to get
beaver signatures for a data range in an open file. The
provided buffer has to be large enough to hold the parameters
and the signatures.

zevadm can display a file's signatures using 'zevadm -c <filename>'

(cherry picked from commit 6b4c2eb9a413da85091774d0095ad61946ae043d)

show more ...


# 5e286361 08-May-2014 Andreas Jaekel <jaekel@strato-rz.de>

zev: calculate beaver-compatible checksums of changes

Ranges required to calculate the checksums will be range locked before
the zev callbacks are called. Checksums are calculated in the zev
module

zev: calculate beaver-compatible checksums of changes

Ranges required to calculate the checksums will be range locked before
the zev callbacks are called. Checksums are calculated in the zev
module and reported to userland. Checksums of all-zeroes blocks are
omitted. Userland is expected to infer that the block must have bee
all-zeroes.

An internal cache is implemented to avoid re-reading the same data
over and over again.

(cherry picked from commit d8e62bab61474da73f26dc58b26d937c9cc17397)

show more ...