Skip to content

Add MS_SILENT to most mount() invocations#377

Merged
cgwalters merged 1 commit intocontainers:masterfrom
cgwalters:silence-is-golden
May 19, 2020
Merged

Add MS_SILENT to most mount() invocations#377
cgwalters merged 1 commit intocontainers:masterfrom
cgwalters:silence-is-golden

Conversation

@cgwalters
Copy link
Collaborator

There's an effort to migrate Linux filesystems to handle the y2038
problem, which is great. However, recently a kernel change landed
that emits a warning when mounting a filesystem that doesn't
handle it, and this notably shows up even when remounting e.g.
for a read-only bind mount:

Using e.g. rpm-ostree install cowsay there's a spam of:

[  189.529594] xfs filesystem being remounted at /sysroot supports timestamps until 2038 (0x7fffffff)

Now particularly when creating a our bind mounts, let's
ask the kernel to be quiet about it. This is not a major event
worthy of a kernel log.

There's an effort to migrate Linux filesystems to handle the y2038
problem, which is great.  However, recently a kernel change landed
that emits a warning when mounting a filesystem that doesn't
handle it, and this notably shows up even when *remounting* e.g.
for a read-only bind mount:

Using e.g. `rpm-ostree install cowsay` there's a spam of:

```
[  189.529594] xfs filesystem being remounted at /sysroot supports timestamps until 2038 (0x7fffffff)
```

Now particularly when creating a our bind mounts, let's
ask the kernel to be quiet about it.  This is not a major event
worthy of a kernel log.
@alexlarsson
Copy link
Collaborator

lgtm

@cgwalters cgwalters merged commit 4e9e6f7 into containers:master May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants