this is basically copy of what nfs_kq.c does - a thread periodically polls server checking if any of the wateched files changed eventually this should be changed to take advantage of SMB Directory Change Notify
related information together, with the file system code itself. This is just low-hanging fruit -- more to come.