From: <bac...@li...> - 2006-05-24 14:15:46
|
The following bug has been ASSIGNED. ====================================================================== http://bugs.bacula.org/bug_view_advanced_page.php?bug_id=0000606 ====================================================================== Reported By: cesarb Assigned To: kern ====================================================================== Project: bacula Bug ID: 606 Category: File Daemon Reproducibility: N/A Severity: feature Priority: normal Status: assigned ====================================================================== Date Submitted: 04-25-2006 19:36 PDT Last Modified: 05-24-2006 07:15 PDT ====================================================================== Summary: O_NOATIME support Description: O_NOATIME is a open() flag which makes it possible to read a file without updating the inode atime (and also without the inode ctime update which happens if you try to set the atime back to its previous value). It also prevents a race condition when two programs are reading the same file, but only one does not want to change the atime. It's most useful for backup programs and file integrity checkers (and bacula can fit on both categories). Recent versions of the Linux kernel and glibc have support for it (the glibc support being mostly copying the O_NOATIME definition to bits/fcntl.h). If there's no support for it on the kernel, trying to use it does nothing (since the kernel ignores unknown flags). If the kernel has support for it, trying to use it either works, fails silently (mostly in remote filesystems), or returns errno=EPERM (if you are not either the owner of the file or root). A simple way to prevent the failure is to open the file without the flag and set it later with fcntl(F_SETFL), ignoring any EPERM errors. ====================================================================== ---------------------------------------------------------------------- kern - 05-24-2006 07:15 PDT ---------------------------------------------------------------------- Nice new feature with a patch. Thanks. I will apply it to the 1.39.x development stream. Bug History Date Modified Username Field Change ====================================================================== 04-25-06 19:36 cesarb New Bug 04-25-06 19:36 cesarb File Added: patch-1.38.8-noatime-3 05-24-06 07:15 kern Bugnote Added: 0001692 05-24-06 07:15 kern Assigned To => kern 05-24-06 07:15 kern Status new => assigned ====================================================================== |