bugfindutils - Bugs: bug #33724, Find command is changing the...

 
 

bug #33724: Find command is changing the access time of directory

Submitted by:  Nitin Bhadauria <nbhadauria>
Submitted on:  Thu 07 Jul 2011 07:41:04 AM UTC  
 
Category: findSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Originator Name: UNICONOpen/Closed: Open
Release: 4.2.27Fixed Release: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 07 Jul 2011 01:10:15 PM UTC, comment #1:

POSIX requires this behavior. However, Linux provides the O_NOATIME flag to open() to work around this behavior - so the obvious conclusion is that find should support the option of requesting the use of the O_NOATIME flag. It can't be on by default, but certainly makes sense to support it where possible.

Eric Blake <ericb>
Project Administrator
Thu 07 Jul 2011 07:41:04 AM UTC, original submission:

I am using find command to find directory not been accessed from 90 days.
for first time it works fine then i found it change the access time of folder.

ex.

[root@mail ~]# date
Thu Jul 7 13:01:45 IST 2011

[root@mail ~]# stat find /mailbox/vmail/nbhadauria/Maildir/cur
stat: cannot stat `find': No such file or directory
File: `/mailbox/vmail/nbhadauria/Maildir/cur'
Size: 581632 Blocks: 1152 IO Block: 4096 directory
Device: 811h/2065d Inode: 15433801 Links: 2
Access: (0700/drwx------) Uid: (11184/ vmail) Gid: ( 2110/ vmail)
Access: 2011-07-07 13:00:46.000000000 +0530
Modify: 2011-07-07 12:49:46.000000000 +0530
Change: 2011-07-07 12:49:46.000000000 +0530

[root@mail ~]# find /mailbox/vmail/*/Maildir/cur -type d -atime +90 -print

[root@mail ~]# stat find /mailbox/vmail/nbhadauria/Maildir/cur
stat: cannot stat `find': No such file or directory
File: `/mailbox/vmail/nbhadauria/Maildir/cur'
Size: 581632 Blocks: 1152 IO Block: 4096 directory
Device: 811h/2065d Inode: 15433801 Links: 2
Access: (0700/drwx------) Uid: (11184/ vmail) Gid: ( 2110/ vmail)
Access: 2011-07-07 13:05:56.000000000 +0530
Modify: 2011-07-07 12:49:46.000000000 +0530
Change: 2011-07-07 12:49:46.000000000 +0530

[root@mail ~]# date
Thu Jul 7 13:06:22 IST 2011

As you can see The Access time is changed..

Nitin Bhadauria <nbhadauria>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by ericb (Posted a comment)
  • -unavailable- added by nbhadauria (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup