From: jose m. <aso...@zo...> - 2010-02-24 16:49:09
|
* I am trying to apply mssetgoal 1 to the files in the trash bin, I get a list of 2 in two ways, in both, many files is an incorrect path to implementing the order. * Example 1: ls -1Q -I undel /media/mfsmeta/trash/ > trashfiles.txt * Result, ignore the line break "00001723|ftp03|CBR101419|eb|escritorio 22.02.2010 12.35| escritorio_20100210_1200.zip.z012.1.pgp" * and apply the order: awk -F'|' '{ print "/media/mfs/" $2 "/" $3 "/" $4 "/" $5 "/" substr($6,1,length($6)-1)}' trashfiles.txt | while read i; do mfssetgoal 1 "$i"; done; * ignore the line break, apply mfssetgoal to: /media/mfs/ftp03/CBR101419/eb/escritorio 22.02.2010 12.35/escritorio_20100210_1200.zip.z012.1.pgp * many files is an incorrect path * Example 2, obtain list. ls -1 -I undel /media/mfsmeta/trash/ > trashfiles.txt * Result, ignore de line break 00001723|ftp03|CBR101419|eb|escritorio 22.02.2010 12.35| escritorio_20100210_1200.zip.z012.1.pgp * and apply de order: awk -F'|' '{ print "/media/mfs/" $2 "/" $3 "/" $4 "/" $5 "/" $6}' trashfiles.txt | while read i; do mfssetgoal 1 "$i"; done; * many files is an incorrect path. * obtaining the listing is erroneous? ¿What am I doing wrong? I need this feature, usually I have 700,000 files in the trash. *I have seen in http://www.moosefs.org/user-contributed-files.html ¿have any practical relation to the question? if so, as you get the files {META-DUMP-FILE} {FILE-INODE} * cheers, jose maria. |