Bug 182188
Summary: | libblkid fails to gather info on systems with clocks set before the epoch | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | David Cantrell <dcantrell> | ||||||
Component: | e2fsprogs | Assignee: | Karel Zak <kzak> | ||||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | rawhide | CC: | kzak, sct | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2006-03-07 15:42:48 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
David Cantrell
2006-02-20 22:19:43 UTC
Created attachment 124914 [details]
libblkid patch
Also, other users have noticed this behavior in the past. Bugzilla #158499 shows it happening. Isn't this basically goin to disable blkid caching in that case, forcing probing each time? Yes. Probe each time is probably less problem than failed fsck/mount when the system boots. IMHO the patch (or some other way how ignore blk.tab on system where time() ==(time_t)-1) has sense. That was my reasoning too. If the clock is useless, blkid should just probe each time. I've added this patch to e2fsprogs-1.38-10. Created attachment 126011 [details]
Better fix for the bug
Here is a more elegant fix to the problem which was reported. There was a bug
in blkid's test to see whether or not a device needs to be verified. The
device should always be checked if current time is less than the last
verification time recorded for the device. Your proposed patch works around
the problem, but doesn't fix the root cause of the problem. (For example, if
the system clock gets set backwards, there are lossage cases that don't get
fixed with your proposed patch, which is fixed with mine.)
Ted's patch has been added to devel/ CVS. |