New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the last mount time using the realtime clock #10

Merged
merged 1 commit into from Nov 5, 2018

Conversation

Projects
None yet
2 participants
@modelrockettier
Contributor

modelrockettier commented Nov 5, 2018

This way the last mount time is something meaningful like "Sun Nov 4 20:11:48 2018" instead of just being various times from 1970 (which happens with the monotonic clock since they have an unspecified start time).

Also, roundup_pow_of_two() is undefined when passed in 0, so check before calling it from fifo_buf_size().

Set the last mount time using the realtime clock
This way the last mount time is actually meaningful instead of just being
various times from 1970 (which happens with the monotonic clock).

Also, roundup_pow_of_two() is undefined when passed in 0, so check before
calling it.

@koverstreet koverstreet merged commit 7227ff0 into koverstreet:master Nov 5, 2018

@modelrockettier modelrockettier deleted the modelrockettier:real_mount_time branch Nov 5, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment