23.07.2014 Views

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

c = get_my_uuids(file);<br />

rintf("Write to the file\n");<br />

rc = write_file(file);<br />

rc = close_file(file);<br />

printf("Listing LOV data\n");<br />

rc = get_file_info(filename);<br />

printf("Ping our OSTs\n");<br />

rc = ping_osts();<br />

TESTFILE);<br />

}<br />

/* the results should match lfs getstripe */<br />

printf("Confirming our results with lfs getsrtipe\n");<br />

sprintf(sys_cmd, "/usr/bin/lfs getstripe %s/%s", MY_LUSTRE_DIR,<br />

system(sys_cmd);<br />

printf("All done\n");<br />

exit(rc);<br />

Makefile for sample application:<br />

gcc -g -O2 -Wall -o lustredemo libtest.c -llustreapi<br />

clean:<br />

rm -f core lustredemo *.o<br />

run:<br />

make<br />

rm -f /mnt/lustre/ftest/lustredemo<br />

rm -f /mnt/lustre/ftest/lustre_dummy<br />

cp lustredemo /mnt/lustre/ftest/<br />

25-16 <strong>Lustre</strong> <strong>1.6</strong> <strong>Operations</strong> <strong>Manual</strong> • September 2008

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!