May 21, 200917 yr I'm using UnRaid as a media server and I was wondering if there is a way to create a log of which files (movies) have been accessed by which computers on what dates. This would allow me to compile a list of movies watched and how many times. Anyone have an idea?
May 21, 200917 yr I'm using UnRaid as a media server and I was wondering if there is a way to create a log of which files (movies) have been accessed by which computers on what dates. This would allow me to compile a list of movies watched and how many times. Anyone have an idea? The file systems on unRAID are mounted with options to specifically not track access time on either files or directories. Example: mount | grep disk1 /dev/md1 on /mnt/disk1 type reiserfs (rw,noatime,nodiratime,noacl,nouser_xattr) This, I think, was to eliminate "writing" to the disks every time they are listed in a file browser. If the access times are updated, it would mean the disks would be writen to, parity updated, and the disks would not spin down as expected. You would need to re-mount the file systems at a minimum. That would allow you to at least use the "access-timeshamp" to track when a file or directory was last accessed. No idea what that would do to the user-shares... you are exploring unknown territory. Nothing I know of will tell you how many times a file has been accessed. Joe L.
May 21, 200917 yr There might be a way to do this via Samba and logging. I have not explored this in any depth. I'm just trying to give a quick reply for more in depth review. I have an old version of smbd running on an old machine and remembered seeing file access logged as such root@mymachine /var/log/samba >less log.machinename [2009/05/21 14:43:11, 2] smbd/open.c:open_file(213) nobody opened file NewAge/Andreas Vollenweider/Down To The Moon/Andreas Vollenweider - Down To The Moon - 05 - Night Fire Dance.m p3 read=Yes write=No (numopen=35)
Archived
This topic is now archived and is closed to further replies.