Forums / General / What is the purpose of "images-versioned"

What is the purpose of "images-versioned"

Author Message

Guillaume Kulakowski

Monday 04 April 2011 9:00:50 am

Hi,

I have an instance of eZ Publish where I can't upload any image because I have reached a NFS limitation in the "images-versioned" folder (31999 directory).

What is the purpose of "images-versioned" ? Can I purge it ?

Thx

My blog : http://www.llaumgui.com (not in eZ Publish ;-))
eZC on RHEL : http://blog.famillecollet.com/pages/Config-en
eZC on Fedora : just "yum install php-channel-ezc"

Sébastien Morel

Monday 04 April 2011 1:06:41 pm

Hi,

This is a limit of ext3, you can remove the empty directories, these just are working directory.

For "image-versioned "I think this bug is fix in 4.5 (or even 4.4). But more generally, this problem can happen if you have over 32K images in a node ...

The next big eZ in production environment, I will still install a Debian but over ReseirFS
In the meantime, the workaround is something like that:

find -depth -type d -empty -exec rmdir {} \;

+ +

--
eZ c'est plus fort que toi !
http://www.ez-france.org
http://blog.plopix.net
@Novactive (http://www.novactive.com)

Marko Žmak

Monday 04 April 2011 2:05:54 pm

Hm, could it be related to this bug:

  • http://issues.ez.no/IssueView.php?Id=17781&activeItem=1

?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Guillaume Kulakowski

Monday 04 April 2011 2:29:31 pm

"

Hi,

This is a limit of ext3, you can remove the empty directories, these just are working directory.

...

find -depth -type d -empty -exec rmdir {} \;
"

Thx. But what the purpose of this folder ? I have do a mv image-versioned _image-versioned and I haven't any problem...

My blog : http://www.llaumgui.com (not in eZ Publish ;-))
eZC on RHEL : http://blog.famillecollet.com/pages/Config-en
eZC on Fedora : just "yum install php-channel-ezc"

Marko Žmak

Tuesday 05 April 2011 6:15:13 am

"

Thx. But what the purpose of this folder ? I have do a mv image-versioned _image-versioned and I haven't any problem...

"

Here it is:

  • http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Configuration-files/image.ini/FileSettings/VersionedImages

And by looking at the eZP kernel code, it looks like its used only in the method imagePath() of eZImageAliasHandler class.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

eZ debug

Timing: Jan 17 2025 23:45:05
Script start
Timing: Jan 17 2025 23:45:05
Module start 'content'
Timing: Jan 17 2025 23:45:05
Module end 'content'
Timing: Jan 17 2025 23:45:05
Script end

Main resources:

Total runtime0.0178 sec
Peak memory usage4,096.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 587.7266180.8438
Module start 'content' 0.00540.0053 768.570398.7266
Module end 'content' 0.01070.0070 867.296978.6875
Script end 0.0177  945.9844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002212.6342120.0002
Check MTime0.00116.2110120.0001
Mysql Total
Database connection0.00084.412410.0008
Mysqli_queries0.002916.432740.0007
Looping result0.00000.079220.0000
Template Total0.006536.610.0065
Template load0.00105.583710.0010
Template processing0.005531.002410.0055
Override
Cache load0.00063.509810.0006
General
dbfile0.00116.1693100.0001
String conversion0.00000.026930.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs