[SPDK] Re: Some questions about SPDK bdev module

Harris, James R <james.r.harris at intel.com> Thu, 10 Feb 2022 15:14:28 +0000
Newsgroups dev.linux.lists.spdk
Message-ID <[email protected]>
Hi,

Please try the following:

{
  "subsystems": [
    {
      "subsystem": "log",
      "config": [
        {
          "method": "log_set_flag",
          "params": { "flag": "nvme" }
        }
      ]
    }
  ]
}

This JSON file will work if you only want to set the nvme log flag.  Or if you have an existing JSON file, you can just add the "subsystem" entry to the "subsystems" array in that file.

Regards,

Jim


On 2/10/22, 6:34 AM, "Luse, Paul E" <paul.e.luse(a)intel.com> wrote:

    Hi,

    The example that Gang provided looked pretty good, you just need to use that format and change the keys/values.  Can you provide the exact json file that you’ve tried (mentioned below) that isn’t working?

    Thx
    Paul

    From: liushengchao02(a)meituan.com <liushengchao02(a)meituan.com>
    Date: Thursday, February 10, 2022 at 12:22 AM
    To: spdk(a)lists.01.org <spdk(a)lists.01.org>
    Subject: [SPDK] Re: Some questions about SPDK bdev module
    Thank you for the reply.

    I have tested many ways in a "json config file" but still can not work as executing 'rpc.py log_set_flag nvme' when starting the SPDK app with '-c' option and specify the json config file.

    That's why I'm here asking for an example of "json config file".

    Does anybody know the answers? Or currently SPDK does not support "log_set_flag" in a json config file?

    Thanks
    _______________________________________________
    SPDK mailing list -- spdk(a)lists.01.org
    To unsubscribe send an email to spdk-leave(a)lists.01.org
    _______________________________________________
    SPDK mailing list -- spdk(a)lists.01.org
    To unsubscribe send an email to spdk-leave(a)lists.01.org