Home > Adult Video Script > AVS Video-Thumbs Directory Limit Problem

AVS Video-Thumbs Directory Limit Problem

Hi,

On Linux a directory can contain maximum 31998 sub-directories this causes a problem for Adult Video Scripts thumbs generation system. AVS uses the following format to create the thumbs: /media/videos/tmb/VIDEO_ID/1.jpg… There are two solution for this
problem:

  1. Change the filesystem to EXT4 or ReiserFS (ReiserFS is the recommend filesystem for small files (think video thumbs), however CentOS/Fedora/RHEL dont support ReiserFS by default).
  2. Change the AVS video thumb directory structure to something like /media/videos/tmb/YEAR-MONTH/VIDEO_ID/. This method requires a lot of code modifications. The thumb generation function has to be modified, same applies to the templates (the thumb display code has to be modified).

I have successfuly used the first method to host more than 200.000 videos.

Advertisement
  1. vino
    June 7, 2010 at 10:47 am | #1

    Hi How can i change to EXT4 and what the procedure to change

    • June 18, 2010 at 9:41 am | #2

      It depends on your configuration, however here is what you can do (generally speaking):

      1. Create a new partition (ext4 of course).
      2. Copy the contents of /media/videos/tmb/ folder to the new partition.
      3. Mount the new partition on /WHERE/AVS/IS/INSTALLED/media/videos/tmb/

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.