Details

    • New Feature
    • Resolution: Won't Do
    • Minor
    • None
    • Lustre 2.8.0
    • None
    • 17495

    Description

      For the HSM migration enhancement (LU-6081), it would be nice to be able to transfer data (stripe informaton and mdt_index) between lfs and the copytool in an exchange format, namely JSON.

      The current liblustreapi_json.c can only encode JSON. Use the CCAN (Comprehensive C Archive Network) JSON which it relatively small, can encode/decode, and has a decent testsuite.

      Replace liblustreapi_json.c with the new implementation.

      Attachments

        Issue Links

          Activity

            [LU-6246] Add a JSON decoder
            simmonsja James A Simmons added a comment - - edited

            Hi Frank. With LUG coming up I like to discuss on developer's day about using JSON in replacement of YAML. Especially since json-c seems to be the standard now.

            simmonsja James A Simmons added a comment - - edited Hi Frank. With LUG coming up I like to discuss on developer's day about using JSON in replacement of YAML. Especially since json-c seems to be the standard now.

            The licenses used by CCAN JSON are:

            • Test anything protocol - tap.c: FreeBSD license (aka 2 clauses BSD)
            • Test anything protocol - compiler.h dependency: CC0 (Creative Commons 0)
            • JSON: MIT

            All 3 licenses are GPLv2 and v3 compatible.

            fzago Frank Zago (Inactive) added a comment - The licenses used by CCAN JSON are: Test anything protocol - tap.c: FreeBSD license (aka 2 clauses BSD) Test anything protocol - compiler.h dependency: CC0 (Creative Commons 0) JSON: MIT All 3 licenses are GPLv2 and v3 compatible.

            frank zago (fzago@cray.com) uploaded a new patch: http://review.whamcloud.com/13774
            Subject: LU-6246 user: replace liblustreapi JSON
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 910e31fe91844a4308e839736c07798c3ff8f15d

            gerrit Gerrit Updater added a comment - frank zago (fzago@cray.com) uploaded a new patch: http://review.whamcloud.com/13774 Subject: LU-6246 user: replace liblustreapi JSON Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 910e31fe91844a4308e839736c07798c3ff8f15d

            frank zago (fzago@cray.com) uploaded a new patch: http://review.whamcloud.com/13773
            Subject: LU-6246 tests: split JSON_NUMBER into int and float
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 13a952f777981a83de7b0dc1068a9c48d813004b

            gerrit Gerrit Updater added a comment - frank zago (fzago@cray.com) uploaded a new patch: http://review.whamcloud.com/13773 Subject: LU-6246 tests: split JSON_NUMBER into int and float Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 13a952f777981a83de7b0dc1068a9c48d813004b

            frank zago (fzago@cray.com) uploaded a new patch: http://review.whamcloud.com/13772
            Subject: LU-6246 tests: integrate CCAN JSON
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: a46eae5c5712bfd6be1071f999a42a1464a59638

            gerrit Gerrit Updater added a comment - frank zago (fzago@cray.com) uploaded a new patch: http://review.whamcloud.com/13772 Subject: LU-6246 tests: integrate CCAN JSON Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: a46eae5c5712bfd6be1071f999a42a1464a59638

            frank zago (fzago@cray.com) uploaded a new patch: http://review.whamcloud.com/13771
            Subject: LU-6246 tests: add CCAN Test Framework from CCAN
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 0db83eecf2101326b1e7c7ea23a13f8e3f94646f

            gerrit Gerrit Updater added a comment - frank zago (fzago@cray.com) uploaded a new patch: http://review.whamcloud.com/13771 Subject: LU-6246 tests: add CCAN Test Framework from CCAN Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 0db83eecf2101326b1e7c7ea23a13f8e3f94646f

            frank zago (fzago@cray.com) uploaded a new patch: http://review.whamcloud.com/13770
            Subject: LU-6246 utils: add CCAN JSON parser / emitter from
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: fb7008342fa71cc919a1c743f304fa053fdaac65

            gerrit Gerrit Updater added a comment - frank zago (fzago@cray.com) uploaded a new patch: http://review.whamcloud.com/13770 Subject: LU-6246 utils: add CCAN JSON parser / emitter from Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: fb7008342fa71cc919a1c743f304fa053fdaac65

            People

              wc-triage WC Triage
              fzago Frank Zago (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: