FAN_CREATE_SELF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jan,

I have a use case with a listener that uses FAN_REPORT_FID mode.
(fid is an index to a db).
Most of the time fid can be resolved to the path and that is sufficient.
If it cannot, the file will be detected by a later dir scan.

I find that with most of the events this use case can handle the events
efficiently without the name info except for FAN_CREATE.

For files, with most applications, FAN_CREATE will be followed by
some other event with the file fid, but it is not guaranteed.
For dirs, a single FAN_CREATE event is more common.

I was thinking that a FAN_CREATE_SELF event could be useful in some
cases, but I don't think it is a must for closing functional gaps.
For example, another group could be used with FAN_REPORT_DFID_NAME
to listen on FAN_CREATE events only, or on FAN_CREATE (without name)
the dir can be scanned, but it is not ideal.

Before composing a patch I wanted to ask your opinion on the
FAN_CREATE_SELF event. Do you have any thoughts on this?

Thanks,
Amir.



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux