Personal anecdata: I bought a Rasp kit in 2014, which came with an off-brand SSD card. Been using for a combination of Kodi and Leafnode ever since, with no issues whatsoever. I'd expected far worse, so I'm impressed and surprised.
Personal anecdata: I bought a Rasp kit in 2014, which came with an off-brand SSD card. Been using for a combination of Kodi and Leafnode ever since, with no issues whatsoever. I'd expected far worse, so I'm impressed and surprised.
LOL.
Well Ive always used to to determine when a file was created as its rare to change permissions and that's my excuse..
That is pretty much the only common use for it.
You might be able use it as a security indicator, of course it will only tell you when not who.
Generally mounting a filesystem noatime only affects performance, IMHO atime was one of the few mistakes in unix.
That doesn?t work either...
$ rm -f a $ touch a $ stat -c 'mtime: %y ctime: %z' a mtime: 2018-05-14 13:21:01.746205877 +0100 ctime: 2018-05-14 13:21:01.746205877 +0100 $ echo whatever >> a $ stat -c 'mtime: %y ctime: %z' a mtime: 2018-05-14 13:21:26.834237884 +0100 ctime: 2018-05-14 13:21:26.834237884 +0100
??? in which case its no different from mtime is it?
Something doesnt compute
If mtime changes then ctime will change but ctime will also change for permission changes and the like when mtime won't.
mtime doesn?t change when you change permissions/owner.
Ah....
OK
Create time is called crtime or birth on various filesystems. POSIX doesn't require a filesystem to store it and there's no POSIX system call to retrieve it.
ext4 (and some other filesystems) do however store it, and you can get it via debugfs:
# debugfs -R 'stat /home/andrew/src/mcp3008/a.out' /dev/mmcblk0p2 node: 126467 Type: regular Mode: 0755 Flags: 0x80000 Generation: 400960989 Version: 0x00000000:00000001 User: 414 Group: 414 Project: 0 Size: 69272 File ACL: 0 Directory ACL: 0 Links: 1 Blockcount: 136 Fragment: Address: 0 Number: 0 Size: 0 ctime: 0x5af804d6:46957cc0 -- Sun May 13 10:26:46 2018 atime: 0x5af804d1:da6a67c4 -- Sun May 13 10:26:41 2018 mtime: 0x5af804d2:089b61e0 -- Sun May 13 10:26:42 2018 crtime: 0x5af804d1:da6a67c4 -- Sun May 13 10:26:41 2018 Size of extra inode fields: 32 Extended attributes: security.capability (20) = 01 00 00 02 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 EXTENTS: (0-16):589824-589840
Version control systems?
Of course I should have said mtime - silly boy!
Kodi if running on top of LibreElec, does a lot less writing to SD card than a general Linux distro, even sitting idle. The two Pi's I'm using for LibreElec have been on the same SD cards for 4 to 5 years.
I'm not sure how much write activity here is from Leafnode does on your setup, but remember no SD card lasts forever, so just make sure it's backed up regularly.
---druck
nah, thats mtime innit shirley?
Have something to add? Share your thoughts — no account required.
Ask the community — no account required