[Bug 1270913] Re: zram-config doesn't start if zram is built-in, not module

stuart naylor 1270913 at bugs.launchpad.net
Mon Mar 4 22:56:56 UTC 2019


zram_config because it makes absolutely no check and overwrites any
previous zram devices due to hard coding.

I have been trying to do something simple as use log2ram with a compressed zram drive.
Came to the conclusion that because of zero checks via zram_config its impossible to have both in operation unless provide zram control in log2ram.

After doing that and some reading of
https://www.kernel.org/doc/Documentation/blockdev/zram.txt I am
completely bemused to what, why and how zram_config operates and prob
someone needs to ask https://www.linkedin.com/in/nitingupta910 the
kernel author of zram some advise.

You can have a look at what I have done in https://github.com/StuartIanNaylor/log2ram/blob/master/log2ram but wouldn't touch zram_config with a bargepole.
Also asked these questions in https://answers.launchpad.net/ubuntu/+source/zram-config/+question/678905

As there seems to be little correlation with zram_config &
https://www.kernel.org/doc/Documentation/blockdev/zram.txt !!?

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to zram-config in Ubuntu.
https://bugs.launchpad.net/bugs/1270913

Title:
  zram-config doesn't start if zram is built-in, not module

Status in zram-config package in Ubuntu:
  Confirmed

Bug description:
  zram-config works only if zram is compiled as module, if built-in then

  modinfo zram | grep -q ' zram_num_devices:' 2>/dev/null;

  and

  modinfo zram | grep -q ' num_devices:' 2>/dev/null;

  from file /etc/init/zram-config.conf returns false.

  Looks like check should be another, proper check for zram
  availability.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zram-config/+bug/1270913/+subscriptions



More information about the foundations-bugs mailing list