Applying "Remove previews from files' Resource after storing in DB" to all files in a volume

Overview

When adding files to a volume with "Remove previews from files' Resource after storing in DB" selected as seen on the image below, there is still data added to the resource fork. Downloading the file from Portal by compressing it using a zip method that does not save the resource fork removes this extra data.

You want a way to automatically apply "Remove previews from files' Resource after storing in DB" to all files in a volume.

 

inline-151680348.png

 

Solution

The cause of the increase in the file sizes is caused by PICT previews being stored in the resource fork of the files.

To prevent the storage of these PICT previews, you can add the :ns option to your Volume within the fpovolopts file on your Xinet Server.

  1. Open /usr/adm/appletalk/fpovolopts in your preferred editor.
  2. Locate your Volume within the file.
  3. Add the :ns option to your volume, as shown below for the XinetVolume1:

    mceclip0.png
  4. Save the file.
  5. Locate the PID for your fpod process and force restart it to finalize the changes:
    1. Execute # ps -ef | grep fpod in your Terminal.
    2. Locate the PID in the results.
    3. Execute # sudo kill -HUP <pid> using the identified PID.

      mceclip3.png

 

Testing

To test, copy a new file to the edited volume and confirm that the file size does not increase.

Comments

0 comments

Please sign in to leave a comment.