File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -241,10 +241,23 @@ libc_enum! {
241
241
#[ repr( u8 ) ]
242
242
#[ non_exhaustive]
243
243
pub enum FanotifyFidEventInfoType {
244
+ /// This event occurs if FAN_REPORT_FID was passed into [`Fanotify::init()`]
244
245
FAN_EVENT_INFO_TYPE_FID ,
246
+ /// This event occurs if FAN_REPORT_DIR_FID was passed into [`Fanotify::init()`].
247
+ /// For events that occur on a non-directory object, this record includes a file handle
248
+ /// that identifies the parent directory filesystem object.
245
249
FAN_EVENT_INFO_TYPE_DFID ,
250
+ /// This event occurs if FAN_REPORT_DIR_FID and FAN_REPORT_NAME was passed into [`Fanotify::init()`].
251
+ /// This record is identical to FAN_EVENT_INFO_TYPE_DFID, except that [`FanotifyFidRecord::name()`]
252
+ /// will return the name of the target filesystem object.
246
253
FAN_EVENT_INFO_TYPE_DFID_NAME ,
254
+ /// This event occurs if a FAN_RENAME event occurs and FAN_REPORT_DIR_FID and FAN_REPORT_NAME was passed into [`Fanotify::init()`].
255
+ /// This record identifies the old parent directory of the renamed directory object.
256
+ /// [`FanotifyFidRecord::name()`] will return the name of the old parent directory.
247
257
FAN_EVENT_INFO_TYPE_OLD_DFID_NAME ,
258
+ /// This event occurs if a FAN_RENAME event occurs and FAN_REPORT_DIR_FID and FAN_REPORT_NAME was passed into [`Fanotify::init()`].
259
+ /// This record identifies the new parent directory of the renamed directory object.
260
+ /// [`FanotifyFidRecord::name()`] will return the name of the new parent directory.
248
261
FAN_EVENT_INFO_TYPE_NEW_DFID_NAME ,
249
262
}
250
263
impl TryFrom <u8 >
You can’t perform that action at this time.
0 commit comments