Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Sep 2004 15:47:48 -0700
From:      Drew Tomlinson <drew@mykitchentable.net>
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Find Command Syntax
Message-ID:  <41520114.7080607@mykitchentable.net>
In-Reply-To: <20040922182306.GA18680@happy-idiot-talk.infracaninophile.co.uk>
References:  <4151998F.205@mykitchentable.net> <20040922153904.GA16792@happy-idiot-talk.infracaninophile.co.uk> <4151A296.90505@mykitchentable.net> <20040922173451.GA18351@happy-idiot-talk.infracaninophile.co.uk> <4151BABA.30300@mykitchentable.net> <20040922182306.GA18680@happy-idiot-talk.infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a cryptographically signed message in MIME format.

--------------ms070608070008000500080506
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

On 9/22/2004 11:23 AM Matthew Seaman wrote:

>On Wed, Sep 22, 2004 at 10:47:38AM -0700, Drew Tomlinson wrote:
>
>  
>
>>OK, I'm trying to understand the difference.  According to the manual 
>>-ctime is "change of file status" and -mtime is "last modification 
>>time".  I think I understand what modification means (changing the 
>>contents of the file) but what is "change of file status"?  In my 
>>particular situation, while reviewing my spam folder for possible "ham", 
>>my IMAP client may change the message status from unread to read.  How 
>>would this affect the actual message file?
>>    
>>
>
>The ctime entry (originally 'creation time') used to be intended to
>record when the file was created.  Nowadays it records the last time
>the inode for the file changed -- that includes such things as changes
>to file permissions, ACLs, option flags etc., but not such things as
>modifications to the file contents which don't change the file size a
>great deal.
>
>This status has nothing to do with what your IMAP client reports as
>the file status.  The ctime concept applies to any file on the system,
>no matter what it's used for.  IMAP status just records or modifies an
>extra header within the message to indicate if it's been read or not.
>
>Thus reading those messages via IMAP might change mtime but not
>ctime. However, I'm not certain of that.  You'll have to experiment.
>You can print out the ctime and mtime for the files by:
>
>    % stat -f 'ctime=%Sc mtime=%Sm   %N' -t '%c' *
>
>Usually mtime and ctime will be exactly the same.
>
>	Cheers,
>
>	Matthew
>  
>
Thank you very much for the explanation.  I will use your stat example 
and do some investigating.

Drew

-- 
Visit The Alchemist's Warehouse
Magic Tricks, DVDs, Videos, Books, & More!

http://www.alchemistswarehouse.com


--------------ms070608070008000500080506
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIH+TCC
AlcwggHAoAMCAQICAw0RLjANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UE
ChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNv
bmFsIEZyZWVtYWlsIElzc3VpbmcgQ0EwHhcNMDQwOTE4MTQ1MDAxWhcNMDUwOTE4MTQ1MDAx
WjBJMR8wHQYDVQQDExZUaGF3dGUgRnJlZW1haWwgTWVtYmVyMSYwJAYJKoZIhvcNAQkBFhdk
cmV3QG15a2l0Y2hlbnRhYmxlLm5ldDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAwJS7
Je3OPtSkBf9B6ZrTC0vrxLNCV9WP3bHljygz2ZQtyr6TpV0j5E8ZMH9MSVxxySTXkeji/e5O
C77BJrcnBUxalMn5v+Ad5Ad7ho52XWyMvlFTJSHW3S1kriBpM/boRa8uQy4YScF9qIrqGi4L
VTf3xlsELK/ZfC7u84iZUd8CAwEAAaM0MDIwIgYDVR0RBBswGYEXZHJld0BteWtpdGNoZW50
YWJsZS5uZXQwDAYDVR0TAQH/BAIwADANBgkqhkiG9w0BAQQFAAOBgQCT6LpTtvsZM047jNdX
CR51RKrjQgeu0XCngtVUhO3lOlKxvH2BOSd/CRQo6rXzCrTWFectUPQ60RCLiyA23t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
MSwwKgYDVQQDEyNUaGF3dGUgUGVyc29uYWwgRnJlZW1haWwgSXNzdWluZyBDQQIDDREuMAkG
BSsOAwIaBQCgggGnMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8X
DTA0MDkyMjIyNDc0OFowIwYJKoZIhvcNAQkEMRYEFCR3GGyHE8KgvwwUAbIokIi4Gy1JMFIG
CSqGSIb3DQEJDzFFMEMwCgYIKoZIhvcNAwcwDgYIKoZIhvcNAwICAgCAMA0GCCqGSIb3DQMC
AgFAMAcGBSsOAwIHMA0GCCqGSIb3DQMCAgEoMHgGCSsGAQQBgjcQBDFrMGkwYjELMAkGA1UE
BhMCWkExJTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMT
I1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBAgMNES4wegYLKoZIhvcNAQkQ
Agsxa6BpMGIxCzAJBgNVBAYTAlpBMSUwIwYDVQQKExxUaGF3dGUgQ29uc3VsdGluZyAoUHR5
KSBMdGQuMSwwKgYDVQQDEyNUaGF3dGUgUGVyc29uYWwgRnJlZW1haWwgSXNzdWluZyBDQQID
DREuMA0GCSqGSIb3DQEBAQUABIGAfoqvkLpgSSXjpaJkdl3kax7q77CCBVAcZ4vPJBBneWzf
LcW9Y65SBUVIc+dWriJLtSXEKuyrz5dZWUJPkBP3hazvLdmhOXeKouWaxcUq/dAafhQoGHIE
VjfSLc59eRuDSLIp3SmjZs1hH0es/F5oconNfoGJMqpSufiLM2ckJyYAAAAAAAA=
--------------ms070608070008000500080506--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41520114.7080607>