search for: file_notify_information

Displaying 6 results from an estimated 6 matches for "file_notify_information".

2005 Jan 20
1
ChangeNotify help wanted
...doesn''t work right. I need some help. I don''t understand what, exactly, I''m supposed to pass to ReadDirectoryChangesW() for the 2nd argument, nor how to read the data back out. There''s also a WCHAR issue that needs to be worked out with regards to the FileName FILE_NOTIFY_INFORMATION struct member. Please see the changenotify_init() function in changenotify.c. HELP! Regards, Dan
2007 Aug 04
10
Need some help with pure Ruby win32-changenotify
...cated, but people seem to still be using win32-changenotify, so I thought I''d see if I could make it pure Ruby. Also, I thought it would be a good opportunity to test passing a custom Win32::Event object. I''m mostly done I think, but I''m having trouble unraveling the FILE_NOTIFY_INFORMATION struct buffer. Please check out the latest lib/win32/changenotify.rb from CVS and take a look at both the custom wait method and the get_file_action private method. The notification is clearly getting picked up, but I''m just not unraveling the struct properly. Here''s a little...
2005 Jan 06
0
Some thoughts on win32-changenotify
...ction: " + cns.action } cn.wait That means altering changenotify.c to use ReadDirectoryChangesW() instead of FindFirstChangeNotification(). Our Ruby ChangeNotifyStruct would contain two members, "action" and "file_name" that would be the Action and FileName members of the FILE_NOTIFY_INFORMATION structure. I''ve tinkered around with this but I''m having a couple issues. I can open a directory and call ReadDirectoryChangesW() successfully, but I can''t figure out how to read back out of the buffer (nor am I exactly sure what to pass as a buffer in the first place)....
2016 Jan 26
2
Notification of file modification in subdirectories not working
..., 10, pid=12027, effective(1001, 1006), real(1001, 0)] ../source3/smbd/notify.c:256(sys_notify_callback) sys_notify_callback called for watchfolder/test [2016/01/26 10:09:15.591083, 1, pid=12027, effective(1001, 1006), real(1001, 0)] ../librpc/ndr/ndr.c:402(ndr_print_debug) &m: struct FILE_NOTIFY_INFORMATION NextEntryOffset : 0x00000000 (0) Action : FILE_ACTION_MODIFIED (3) FileNameLength : 0x00000016 (22) FileName1 : 'subfile.txt' _pad : DATA_BLOB length=0 [2016/01/26 10:09...
2016 Jan 22
2
Notification of file modification in subdirectories not working
On Thu, Jan 21, 2016 at 04:57:34AM -0800, ivenhov wrote: > Hi > > Does anyone had similar issues in the past? > I still cannot find reason why notification of file modification of files in > subdirs is not visible on client machines Someone needs to send network traces and debug level 10 logs for this. And try to reproduce the same against a Windows server. Volker -- SerNet
2007 Aug 08
12
Some more win32-changenotify analysis
Hi all, I decided to check the responsiveness of the pure Ruby vs C extension versions of win32-changenotify. I setup this little file generator program: a = [] 10.times{ |n| a << Thread.new{ File.open("File_#{n}", ''w''){ |fh| fh.puts "test #{n}" } } } a.each{ |t| t.join } The pure Ruby version did not do so well. In some cases it