[lxc-devel] [lxc/lxc] 97edeb: Check only rootfs as filesystem type

Christian Brauner noreply at github.com
Tue Aug 25 10:30:52 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 97edebfacd8be1163a1ad285ddcfcf843f1a46de
      https://github.com/lxc/lxc/commit/97edebfacd8be1163a1ad285ddcfcf843f1a46de
  Author: Pranay Kr. Srivastava <pranay.srivastava at pantacor.com>
  Date:   2020-08-24 (Mon, 24 Aug 2020)

  Changed paths:
    M src/lxc/utils.c

  Log Message:
  -----------
  Check only rootfs as filesystem type

When detecting if rootfs is on ramfs instead of checking "- rootfs
rootfs" which is the " - <file_system> <device>" information only check
the file system type. This is due to a change introduced in kernel where
ramfs file system doesn't set the device to "rootfs" but instead mark it
as "none". By making sure we only check for "rootfs" as the file system
name we also offer backward compatibility with earlier kernels as well.

The kernel commit that introduced this change was

commit f32356261d44d580649a7abce1156d15d49cf20f
Author: David Howells <dhowells at redhat.com>
Date:   Mon Mar 25 16:38:31 2019 +0000

    vfs: Convert ramfs, shmem, tmpfs, devtmpfs, rootfs to use the new
    mount API

Signed-off-by: Pranay Kr. Srivastava <pranay.srivastava at pantacor.com>


  Commit: 00f848f31a11ac9b86793fe461d67689b0eb3118
      https://github.com/lxc/lxc/commit/00f848f31a11ac9b86793fe461d67689b0eb3118
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2020-08-25 (Tue, 25 Aug 2020)

  Changed paths:
    M src/lxc/utils.c

  Log Message:
  -----------
  Merge pull request #3529 from pranaysrivastava/fixup_rootfs_detection

Check only rootfs as filesystem type


Compare: https://github.com/lxc/lxc/compare/c22a1a4a52ee...00f848f31a11


More information about the lxc-devel mailing list