Loading lfs/src/cci.conf→lfs/cci.conf +3 −1 Original line number Diff line number Diff line [mercury] # use this example for TCP transport = tcp #interface = lo # switch this to eth0 or an external hostname for non-localhost use interface = eno1 # switch this to eth0 or an external hostname for non-localhost use ## use this example instead for shared memory Loading @@ -9,3 +10,4 @@ interface = eno1 # switch this to eth0 or an external hostname for non-localhos ## use this example instead for InfiniBand # transport = verbs # interface = ib0 lfs/clone_all.sh 0 → 100755 +20 −0 Original line number Diff line number Diff line #!/bin/bash HOME=/home/evie GIT=$HOME/adafs/git mkdir -p $GIT cd $GIT git clone https://github.com/CCI/cci cd $GIT/cci git checkout tags/v2.1 cd $GIT git clone --recurse-submodules https://github.com/mercury-hpc/mercury git clone https://github.com/pmodels/argobots cd $GIT/argobots git checkout tags/v1.0a1 cd $GIT git clone https://xgitlab.cels.anl.gov/sds/abt-snoozer git clone https://xgitlab.cels.anl.gov/sds/margo lfs/compile_all.sh 0 → 100755 +89 −0 Original line number Diff line number Diff line #!/bin/bash HOME=/home/evie GIT=$HOME/adafs/git INSTALL=$HOME/adafs/install #echo "Installing BMI" # BMI #CURR=$GIT/bmi #rm -rf $CURR/build/* #cd $CURR #./prepare #cd $CURR/build #../configure --prefix=$INSTALL --enable-shared --enable-bmi-only #make -j8 #make install echo "Installing CCI" # CCI CURR=$GIT/cci ./autogen.pl if [ ! -d "$CURR/build" ]; then mkdir $CURR/build fi cd $CURR/build ../configure --prefix=$INSTALL make -j8 make install echo "Installing Mercury" # Mercury CURR=$GIT/mercury if [ ! -d "$CURR/build" ]; then mkdir $CURR/build fi rm -rf $CURR/build/* cd $CURR/build cmake -DMERCURY_USE_SELF_FORWARD:BOOL=ON -DMERCURY_USE_CHECKSUMS:BOOL=OFF -DBUILD_TESTING:BOOL=ON -DMERCURY_USE_BOOST_PP:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_INSTALL_PREFIX=$INSTALL -DCMAKE_BUILD_TYPE:STRING=Release -DNA_USE_CCI:BOOL=ON ../ make -j8 make install echo "Installing Argobots" # Argobots CURR=$GIT/argobots if [ ! -d "$CURR/build" ]; then mkdir $CURR/build fi rm -rf $CURR/build/* cd $CURR ./autogen.sh cd $CURR/build ../configure --prefix=$INSTALL make -j8 make install make check echo "Installing Abt-snoozer" # Abt snoozer CURR=$GIT/abt-snoozer if [ ! -d "$CURR/build" ]; then mkdir $CURR/build fi rm -rf $CURR/build/* cd $CURR ./prepare.sh cd $CURR/build ../configure --prefix=$INSTALL PKG_CONFIG_PATH=$INSTALL/lib/pkgconfig make -j8 make install make check echo "Installing Margo" # Margo CURR=$GIT/margo if [ ! -d "$CURR/build" ]; then mkdir $CURR/build fi rm -rf $CURR/build/* cd $CURR ./prepare.sh cd $CURR/build ../configure --prefix=$INSTALL PKG_CONFIG_PATH=$INSTALL/lib/pkgconfig CFLAGS="-g -Wall" make -j8 make install make check echo "Done" lfs/src/adafs_ops/mdata_ops.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -141,10 +141,11 @@ void metadata_to_stat(const Metadata& md, struct stat& attr) { * @param mode * @return err */ int create_node(fuse_req_t& req, struct fuse_entry_param& fep, fuse_ino_t parent, const string& name, mode_t mode) { int create_node(struct fuse_entry_param& fep, fuse_ino_t parent, const string& name, const uid_t uid, const gid_t gid, mode_t mode) { // create metadata of new file (this will also create a new inode number) // mode is used here to init metadata auto md = make_shared<Metadata>(mode, fuse_req_ctx(req)->uid, fuse_req_ctx(req)->gid); auto md = make_shared<Metadata>(mode, uid, gid); if ((mode & S_IFDIR) == S_IFDIR) { md->size( ADAFS_DATA->blocksize()); // XXX just visual. size computation of directory should be done properly at some point Loading lfs/src/adafs_ops/mdata_ops.hpp +2 −1 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ int get_attr(struct stat& attr, const fuse_ino_t inode); void metadata_to_stat(const Metadata& md, struct stat& attr); int create_node(fuse_req_t& req, struct fuse_entry_param& fep, fuse_ino_t parent, const string& name, mode_t mode); int create_node(struct fuse_entry_param& fep, fuse_ino_t parent, const string& name, const uid_t uid, const gid_t gid, mode_t mode); #endif //FS_METADATA_OPS_H Loading
lfs/src/cci.conf→lfs/cci.conf +3 −1 Original line number Diff line number Diff line [mercury] # use this example for TCP transport = tcp #interface = lo # switch this to eth0 or an external hostname for non-localhost use interface = eno1 # switch this to eth0 or an external hostname for non-localhost use ## use this example instead for shared memory Loading @@ -9,3 +10,4 @@ interface = eno1 # switch this to eth0 or an external hostname for non-localhos ## use this example instead for InfiniBand # transport = verbs # interface = ib0
lfs/clone_all.sh 0 → 100755 +20 −0 Original line number Diff line number Diff line #!/bin/bash HOME=/home/evie GIT=$HOME/adafs/git mkdir -p $GIT cd $GIT git clone https://github.com/CCI/cci cd $GIT/cci git checkout tags/v2.1 cd $GIT git clone --recurse-submodules https://github.com/mercury-hpc/mercury git clone https://github.com/pmodels/argobots cd $GIT/argobots git checkout tags/v1.0a1 cd $GIT git clone https://xgitlab.cels.anl.gov/sds/abt-snoozer git clone https://xgitlab.cels.anl.gov/sds/margo
lfs/compile_all.sh 0 → 100755 +89 −0 Original line number Diff line number Diff line #!/bin/bash HOME=/home/evie GIT=$HOME/adafs/git INSTALL=$HOME/adafs/install #echo "Installing BMI" # BMI #CURR=$GIT/bmi #rm -rf $CURR/build/* #cd $CURR #./prepare #cd $CURR/build #../configure --prefix=$INSTALL --enable-shared --enable-bmi-only #make -j8 #make install echo "Installing CCI" # CCI CURR=$GIT/cci ./autogen.pl if [ ! -d "$CURR/build" ]; then mkdir $CURR/build fi cd $CURR/build ../configure --prefix=$INSTALL make -j8 make install echo "Installing Mercury" # Mercury CURR=$GIT/mercury if [ ! -d "$CURR/build" ]; then mkdir $CURR/build fi rm -rf $CURR/build/* cd $CURR/build cmake -DMERCURY_USE_SELF_FORWARD:BOOL=ON -DMERCURY_USE_CHECKSUMS:BOOL=OFF -DBUILD_TESTING:BOOL=ON -DMERCURY_USE_BOOST_PP:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_INSTALL_PREFIX=$INSTALL -DCMAKE_BUILD_TYPE:STRING=Release -DNA_USE_CCI:BOOL=ON ../ make -j8 make install echo "Installing Argobots" # Argobots CURR=$GIT/argobots if [ ! -d "$CURR/build" ]; then mkdir $CURR/build fi rm -rf $CURR/build/* cd $CURR ./autogen.sh cd $CURR/build ../configure --prefix=$INSTALL make -j8 make install make check echo "Installing Abt-snoozer" # Abt snoozer CURR=$GIT/abt-snoozer if [ ! -d "$CURR/build" ]; then mkdir $CURR/build fi rm -rf $CURR/build/* cd $CURR ./prepare.sh cd $CURR/build ../configure --prefix=$INSTALL PKG_CONFIG_PATH=$INSTALL/lib/pkgconfig make -j8 make install make check echo "Installing Margo" # Margo CURR=$GIT/margo if [ ! -d "$CURR/build" ]; then mkdir $CURR/build fi rm -rf $CURR/build/* cd $CURR ./prepare.sh cd $CURR/build ../configure --prefix=$INSTALL PKG_CONFIG_PATH=$INSTALL/lib/pkgconfig CFLAGS="-g -Wall" make -j8 make install make check echo "Done"
lfs/src/adafs_ops/mdata_ops.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -141,10 +141,11 @@ void metadata_to_stat(const Metadata& md, struct stat& attr) { * @param mode * @return err */ int create_node(fuse_req_t& req, struct fuse_entry_param& fep, fuse_ino_t parent, const string& name, mode_t mode) { int create_node(struct fuse_entry_param& fep, fuse_ino_t parent, const string& name, const uid_t uid, const gid_t gid, mode_t mode) { // create metadata of new file (this will also create a new inode number) // mode is used here to init metadata auto md = make_shared<Metadata>(mode, fuse_req_ctx(req)->uid, fuse_req_ctx(req)->gid); auto md = make_shared<Metadata>(mode, uid, gid); if ((mode & S_IFDIR) == S_IFDIR) { md->size( ADAFS_DATA->blocksize()); // XXX just visual. size computation of directory should be done properly at some point Loading
lfs/src/adafs_ops/mdata_ops.hpp +2 −1 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ int get_attr(struct stat& attr, const fuse_ino_t inode); void metadata_to_stat(const Metadata& md, struct stat& attr); int create_node(fuse_req_t& req, struct fuse_entry_param& fep, fuse_ino_t parent, const string& name, mode_t mode); int create_node(struct fuse_entry_param& fep, fuse_ino_t parent, const string& name, const uid_t uid, const gid_t gid, mode_t mode); #endif //FS_METADATA_OPS_H