From: Michał B. <mic...@ge...> - 2010-02-26 09:12:18
|
Now please try doing something like this: cd /media/mfsmeta/trash find . -name '[0-9A-F]*' | sed "s/^/'/" | sed "s/$/'/" | xargs -n 1 mfssetgoal 1 In the future we plan to put trash into a normal file structure. Than it would be enough to do something like: mfssetgoal -r /mnt/mfs/.trash But at the moment you have to do it as shown in the first example. Kind regards Michal Borychowski -----Original Message----- From: jose maria [mailto:aso...@zo...] Sent: Wednesday, February 24, 2010 4:02 PM To: moo...@li... Subject: [Moosefs-users] mfssetgoal 1 to trashfiles * 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. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ moosefs-users mailing list moo...@li... https://lists.sourceforge.net/lists/listinfo/moosefs-users |