Reply to thread

None of the above... I think... but maybe I'm misunderstanding your options.

When paused, TV Server will use up to [Maximum] * [Filesize] for each paused client/session.

There is one caveat: the available HDD space must be >= [Filesize] * 2 in order for TV Server to create a new timeshift file. In other words, TV Server prevents you from using the last [Filesize] space on your HDD.

 

In case you understand code, here is the relevant section from deep inside TsWriter:

[code]__int64 llDiskSpaceAvailable = 0;

if (SUCCEEDED(GetAvailableDiskSpace(&llDiskSpaceAvailable)) && (__int64)llDiskSpaceAvailable < (__int64)(m_maxTSFileSize*2))

{

  hr = ReuseTSFile();

}

else

{

  if (m_tsFileNames.size() >= (UINT)m_minTSFiles)

  {

    if FAILED(hr = ReuseTSFile())

    {

      if (m_tsFileNames.size() < (UINT)m_maxTSFiles)

      {

        if (hr != 0x80070020) // ERROR_SHARING_VIOLATION

          LogDebug("Failed to reopen old file. Unexpected reason. Trying to create a new file.");

 

        hr = CreateNewTSFile();

      }

      else

      {

        if (hr != 0x80070020) // ERROR_SHARING_VIOLATION

          LogDebug("Failed to reopen old file. Unexpected reason. Dropping data!");

        else

          LogDebug("Failed to reopen old file. It's currently in use. Dropping data!");

 

        Sleep(500);

      }

    }

  }

  else

  {

    hr = CreateNewTSFile();

  }

}[/code]

 


Set maximum to the size corresponding with the longest pause you anticipate using... or just set it up to the maximum free space on the HDD.

Set minimum to the size corresponding with the back buffer that you might nominally want... or if you don't care about HDD wear and speed set it the same as maximum.

This really isn't something that is particularly critical as MP will prevent you from completely filling the HDD.


Top Bottom