google / cadvisor

Analyzes resource usage and performance characteristics of running containers.
Other
17.25k stars 2.33k forks source link

Support f2fs filesystem #3604

Open tomaszduda23 opened 1 month ago

tomaszduda23 commented 1 month ago

There is effort to run docker on Android https://github.com/opencontainers/runc/issues/4443. It is possible to run also k3s. Without this k3s will exit with following error

E1012 16:21:00.216260    7851 kubelet.go:1431] "Failed to start ContainerManager" err="failed to get rootfs info: failed to get mount point for device \"/dev/block/dm-53\": no partition info for device \"/dev/block/dm-53\""

Android uses following options to mount /data.

/dev/block/dm-53 on /data type f2fs (rw,lazytime,seclabel,nosuid,nodev,noatime,background_gc=on,discard,no_heap,user_xattr,inline_xattr,acl,inline_data,inline_dentry,extent_cache,mode=adaptive,active_logs=6,reserve_root=32768,resuid=0,resgid=1065,noatgc,inlinecrypt,alloc_mode=default,fsync_mode=nobarrier)

which is ignored during look up.

Testing requires:

  1. patching kernel
  2. adding this patch
  3. patching https://github.com/opencontainers/runc/issues/4443
  4. k3s can run in agent mode
google-cla[bot] commented 1 month ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

SergeyKanzhelev commented 1 month ago

please provide some description to the PR including how this is validated