Whamcloud - gitweb
Merge "LU-9771 flr: Merge branch 'flr'"
authorIntel HPDD Gerrit Code Review <hpdd-review@intel.com>
Fri, 1 Dec 2017 05:17:10 +0000 (05:17 +0000)
committerIntel HPDD Gerrit Code Review <hpdd-review@intel.com>
Fri, 1 Dec 2017 05:17:10 +0000 (05:17 +0000)
18 files changed:
1  2 
lustre/include/lustre/lustreapi.h
lustre/include/obd_support.h
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/ldlm/ldlm_request.c
lustre/llite/file.c
lustre/mdd/mdd_internal.h
lustre/mdd/mdd_object.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_open.c
lustre/osp/osp_sync.c
lustre/tests/multiop.c
lustre/tests/sanity-hsm.sh
lustre/tests/sanity-lfsck.sh
lustre/tests/sanity.sh
lustre/utils/lfs.c
lustre/utils/liblustreapi.c
lustre/utils/liblustreapi_layout.c

@@@ -819,10 -893,18 +901,22 @@@ int llapi_layout_file_comp_set(const ch
   */
  bool llapi_layout_is_composite(struct llapi_layout *layout);
  
+ /**
+  * FLR: mirror operation APIs
+  */
+ int llapi_mirror_set(int fd, unsigned int id);
+ int llapi_mirror_clear(int fd);
+ ssize_t llapi_mirror_read(int fd, unsigned int id,
+                          void *buf, size_t count, off_t pos);
+ ssize_t llapi_mirror_copy_many(int fd, unsigned int src,
+                               unsigned int *dst, size_t count);
+ int llapi_mirror_copy(int fd, unsigned int src, unsigned int dst,
+                      off_t pos, size_t count);
  /** @} llapi */
  
 +#if defined(__cplusplus)
 +}
 +#endif
 +
  #endif
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -216,10 -216,9 +216,9 @@@ int main(int argc, char **argv
        int                      save_errno;
        int                      verbose = 0;
        int                      gid = 0;
 -      lustre_fid               fid;
 +      struct lu_fid            fid;
        struct timespec          ts;
        struct lov_user_md_v3    lum;
-       __u64                    dv;
  
          if (argc < 3) {
                  fprintf(stderr, usage, argv[0]);
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge