Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Ubuntu 13.10 clock problems (was: Ibus and Ubuntu based)
- Date: Thu, 14 Nov 2013 16:54:19 +0900
- From: "Stephen J. Turnbull" <turnbull@example.com>
- Subject: Re: [tlug] Ubuntu 13.10 clock problems (was: Ibus and Ubuntu based)
- References: <20131025030341.GA20719@scott1.scottro.net> <526FA5B8.3040702@l.u-tokyo.ac.jp> <CACDLhbZ7y69SgsOzVu4QFCtwUCO4H6hFK7OabLAM1X7vYpTsxw@mail.gmail.com> <CAJA1Y2agkrFW29P6_XZnYEZBE_dKDO71dJTCB+BzXa6BX1zYdw@mail.gmail.com> <CACDLhbbcDkEgO=QPOp8G48j5ms-9dcTcdMWbsRBiVJGkqgCGqw@mail.gmail.com> <CAJA1Y2ZQn1T2cObj1J4sc2EEkdmWB44a2dSYpW0UgPL13N=FBA@mail.gmail.com> <CACDLhbZKszvsEf26PgugbKPcm9m_B=eFOPe8YA+H_FDLtWiVdQ@mail.gmail.com> <CAJA1Y2YzJ+O32NeEw7wXEYZE7H8uLtZMiTjbXBR1zLYLyfbE2g@mail.gmail.com> <CACDLhbZX6ZqKwUSJCcw-qjxZ_f_yVxTEEfGrkgtP=VeA-O+FjQ@mail.gmail.com> <CAJA1Y2a8k_Tao3HaxcrhX0Kzz5=LG3+8=9r7FaDMNPBmx9kyxA@mail.gmail.com> <CACDLhbbNFg6FRw34AxLYqabzj=bh4299wz5VigCYDyn9Tb+LbQ@mail.gmail.com>
Lyle H Saxon writes: > Well, based on the word "modified", I would prefer a file not be > considered modified unless there has been some change. Prepare to spend a lot of time waiting for your computer, then. In order to check accurately for modifications, the whole file needs to be read. If you don't have a good hash available (aka checksum or message digest), you need to actually compare the content. If you have a program that tracks a bunch of large files (a photograph, audio, or video manager, for example), this is very expensive. In practice, what is done is some heuristics are used. The POSIX heuristic that there are several timestamps associated with a file (creation, access, modification, status change) is usually quite useful (ie, comparing modification timestamps of source and generated files is a very useful heuristic used by make). I'm not sure why this heuristic led to confusion in your case. Note that git, which has the responsibility for keeping some of the world's most valuable software safe, uses this heuristic, too. What it does is that when you invoke "git status", it just checks time stamps. If it sees that the current time stamp is later than it thinks it should be, it reports that the file was modified. (In the usual case for me, I invoked an editor, modified the file, changed it back for some reason, and then saved it.) But when you try to commit the allegedly "modified" file, it compares content, discovers they're the same, and refuses to record the change. (It *is* possible to force the commit, but you have to specify the --force option.) The reason for this behavior, of course, is efficiency. This happens to me reasonably frequently, but it's arguable that the file actually *was* modified, it just had no net effect. :-)
- References:
- Re: [tlug] Ubuntu 13.10 clock problems (was: Ibus and Ubuntu based)
- From: Lyle H Saxon
- Re: [tlug] Ubuntu 13.10 clock problems (was: Ibus and Ubuntu based)
- From: Bruno Raoult
- Re: [tlug] Ubuntu 13.10 clock problems (was: Ibus and Ubuntu based)
- From: Lyle H Saxon
- Re: [tlug] Ubuntu 13.10 clock problems (was: Ibus and Ubuntu based)
- From: Bruno Raoult
- Re: [tlug] Ubuntu 13.10 clock problems (was: Ibus and Ubuntu based)
- From: Lyle H Saxon
- Re: [tlug] Ubuntu 13.10 clock problems (was: Ibus and Ubuntu based)
- From: Bruno Raoult
- Re: [tlug] Ubuntu 13.10 clock problems (was: Ibus and Ubuntu based)
- From: Lyle H Saxon
- Re: [tlug] Ubuntu 13.10 clock problems (was: Ibus and Ubuntu based)
- From: Bruno Raoult
- Re: [tlug] Ubuntu 13.10 clock problems (was: Ibus and Ubuntu based)
- From: Lyle H Saxon
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] JPEG file timestamp vs EXIF timestamp (was: Ubuntu 13.10 clock problems (was: Ibus and Ubuntu based))
- Next by Date: Re: [tlug] New notebook & distro
- Previous by thread: Re: [tlug] Ubuntu 13.10 clock problems (was: Ibus and Ubuntu based)
- Next by thread: Re: [tlug] Ubuntu 13.10 clock problems (was: Ibus and Ubuntu based)
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links