opts/mount: add tmpfs-specific options#28150
Conversation
ff095c2 to
814dae0
Compare
opts/mount.go
Outdated
There was a problem hiding this comment.
Are there any cases where one would not pass these as octal?
There was a problem hiding this comment.
No.
Updated PR to use ParseUint(value, 8, ..) instead.
Linux tmpfs uses strtoul(..,8,.. ) as well: http://lxr.free-electrons.com/source/mm/shmem.c?v=4.8#L3440
opts/mount_test.go
Outdated
There was a problem hiding this comment.
Make sure to test a few variations of octal mode bits. For example, 0700 and 700 will be different.
There was a problem hiding this comment.
In Linux tmpfs 0700 is identical to 700.
http://lxr.free-electrons.com/source/mm/shmem.c?v=4.8#L3440
Updated the PR to test that.
added following options: * tmpfs-size * tmpfs-mode Signed-off-by: Akihiro Suda <[email protected]>
814dae0 to
45ed6a7
Compare
|
Design SGTM 🐸 |
|
LGTM |
|
ping @thaJeztah |
|
Please wait with merging until #27967 is merged! |
- What I did
added following options for
--mount(addendum to #26837):tmpfs-sizetmpfs-mode- How I did it
Updated opts/mount
- How to verify it
- Description for the changelog
opts/mount: add tmpfs-specific options
- A picture of a cute animal (not mandatory but encouraged)
Signed-off-by: Akihiro Suda [email protected]