Skip to content
Commit fc69f35c authored by Xie Ning's avatar Xie Ning Committed by Jayanth Othayoth
Browse files

Add rotate support if the space is full



delete the first existing file if the space is not enough

Tested:
1. create dump and make the space is not enough
busctl call xyz.openbmc_project.Dump.Manager /xyz/openbmc_project/dump/bmc xyz.openbmc_project.Dump.Create CreateDump a{sv} 0
busctl tree xyz.openbmc_project.Dump.Manager                                                                        `-/xyz
  `-/xyz/openbmc_project
    `-/xyz/openbmc_project/dump
      |-/xyz/openbmc_project/dump/bmc
      | `-/xyz/openbmc_project/dump/bmc/entry
      |   |-/xyz/openbmc_project/dump/bmc/entry/10
      |   |-/xyz/openbmc_project/dump/bmc/entry/6
      |   |-/xyz/openbmc_project/dump/bmc/entry/7
      |   |-/xyz/openbmc_project/dump/bmc/entry/8
      |   `-/xyz/openbmc_project/dump/bmc/entry/9
      `-/xyz/openbmc_project/dump/internal
        `-/xyz/openbmc_project/dump/internal/manager

2. create dump again and the the first existing file will be deleted

Signed-off-by: default avatarXie Ning <xiening.xll@bytedance.com>
Change-Id: Ic3b376d7e6512a264f849de760363f4e167421c7
parent b7e6e2e4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment