diff --git a/crates/spfs/README.md b/crates/spfs/README.md index 1e120cd3b..e5de5abbc 100644 --- a/crates/spfs/README.md +++ b/crates/spfs/README.md @@ -1,3 +1,7 @@ + + + + # spfs Filesystem isolation, capture, and distribution. diff --git a/crates/spfs/src/bootstrap.rs b/crates/spfs/src/bootstrap.rs index 611224a17..99017c701 100644 --- a/crates/spfs/src/bootstrap.rs +++ b/crates/spfs/src/bootstrap.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use super::resolve::{which, which_spfs}; use super::status::active_runtime; use crate::{runtime, Result}; diff --git a/crates/spfs/src/bootstrap_test.rs b/crates/spfs/src/bootstrap_test.rs index f1dabf040..8322a56e5 100644 --- a/crates/spfs/src/bootstrap_test.rs +++ b/crates/spfs/src/bootstrap_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use rstest::rstest; use super::build_shell_initialized_command; diff --git a/crates/spfs/src/clean.rs b/crates/spfs/src/clean.rs index c67117c2d..82f9162a7 100644 --- a/crates/spfs/src/clean.rs +++ b/crates/spfs/src/clean.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use std::collections::HashSet; use indicatif::ParallelProgressIterator; diff --git a/crates/spfs/src/clean_test.rs b/crates/spfs/src/clean_test.rs index 75fb3eee4..9fac5cd85 100644 --- a/crates/spfs/src/clean_test.rs +++ b/crates/spfs/src/clean_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use rstest::rstest; use super::{ diff --git a/crates/spfs/src/cli/args.rs b/crates/spfs/src/cli/args.rs index 9a37804c3..82cc04ed0 100644 --- a/crates/spfs/src/cli/args.rs +++ b/crates/spfs/src/cli/args.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use sentry::IntoDsn; use spfs; diff --git a/crates/spfs/src/cli/bin.rs b/crates/spfs/src/cli/bin.rs index 8a6862bfe..180960642 100644 --- a/crates/spfs/src/cli/bin.rs +++ b/crates/spfs/src/cli/bin.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use structopt::StructOpt; #[macro_use] diff --git a/crates/spfs/src/cli/cmd_check.rs b/crates/spfs/src/cli/cmd_check.rs index 8e89a3cfb..a67b336de 100644 --- a/crates/spfs/src/cli/cmd_check.rs +++ b/crates/spfs/src/cli/cmd_check.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use structopt::StructOpt; use spfs; diff --git a/crates/spfs/src/cli/cmd_clean.rs b/crates/spfs/src/cli/cmd_clean.rs index 9ece5d5a2..32e1c16d5 100644 --- a/crates/spfs/src/cli/cmd_clean.rs +++ b/crates/spfs/src/cli/cmd_clean.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use chrono::prelude::*; use colored::*; use structopt::StructOpt; diff --git a/crates/spfs/src/cli/cmd_commit.rs b/crates/spfs/src/cli/cmd_commit.rs index 1c86f9204..5a986f700 100644 --- a/crates/spfs/src/cli/cmd_commit.rs +++ b/crates/spfs/src/cli/cmd_commit.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use structopt::StructOpt; use spfs::{encoding::Encodable, storage::TagStorage}; diff --git a/crates/spfs/src/cli/cmd_diff.rs b/crates/spfs/src/cli/cmd_diff.rs index 0bd62bf31..981f192e1 100644 --- a/crates/spfs/src/cli/cmd_diff.rs +++ b/crates/spfs/src/cli/cmd_diff.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use structopt::StructOpt; use spfs; diff --git a/crates/spfs/src/cli/cmd_edit.rs b/crates/spfs/src/cli/cmd_edit.rs index 8634c363f..0029bdbf9 100644 --- a/crates/spfs/src/cli/cmd_edit.rs +++ b/crates/spfs/src/cli/cmd_edit.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use structopt::StructOpt; use spfs; diff --git a/crates/spfs/src/cli/cmd_enter.rs b/crates/spfs/src/cli/cmd_enter.rs index 140378de9..5012cc97e 100644 --- a/crates/spfs/src/cli/cmd_enter.rs +++ b/crates/spfs/src/cli/cmd_enter.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use std::ffi::OsString; use structopt::StructOpt; diff --git a/crates/spfs/src/cli/cmd_info.rs b/crates/spfs/src/cli/cmd_info.rs index c6fd2e684..1b6dec8bd 100644 --- a/crates/spfs/src/cli/cmd_info.rs +++ b/crates/spfs/src/cli/cmd_info.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use colored::*; use structopt::StructOpt; diff --git a/crates/spfs/src/cli/cmd_init.rs b/crates/spfs/src/cli/cmd_init.rs index 17c24a6bd..4021de3f0 100644 --- a/crates/spfs/src/cli/cmd_init.rs +++ b/crates/spfs/src/cli/cmd_init.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use spfs::Result; use std::ffi::OsString; use structopt::StructOpt; diff --git a/crates/spfs/src/cli/cmd_join.rs b/crates/spfs/src/cli/cmd_join.rs index c64e1bb12..369c0f3d0 100644 --- a/crates/spfs/src/cli/cmd_join.rs +++ b/crates/spfs/src/cli/cmd_join.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use spfs::Result; use std::ffi::OsString; use structopt::StructOpt; diff --git a/crates/spfs/src/cli/cmd_layers.rs b/crates/spfs/src/cli/cmd_layers.rs index 9142a4d22..6c24b2161 100644 --- a/crates/spfs/src/cli/cmd_layers.rs +++ b/crates/spfs/src/cli/cmd_layers.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use structopt::StructOpt; use spfs; diff --git a/crates/spfs/src/cli/cmd_log.rs b/crates/spfs/src/cli/cmd_log.rs index 582595aa9..1218b029c 100644 --- a/crates/spfs/src/cli/cmd_log.rs +++ b/crates/spfs/src/cli/cmd_log.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use colored::*; use structopt::StructOpt; diff --git a/crates/spfs/src/cli/cmd_ls.rs b/crates/spfs/src/cli/cmd_ls.rs index 2b3a31109..38c9f9c4f 100644 --- a/crates/spfs/src/cli/cmd_ls.rs +++ b/crates/spfs/src/cli/cmd_ls.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use structopt::StructOpt; use spfs::{self, prelude::*}; diff --git a/crates/spfs/src/cli/cmd_ls_tags.rs b/crates/spfs/src/cli/cmd_ls_tags.rs index e51d309d9..8f2e1fbea 100644 --- a/crates/spfs/src/cli/cmd_ls_tags.rs +++ b/crates/spfs/src/cli/cmd_ls_tags.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use structopt::StructOpt; use spfs::{self, prelude::*}; diff --git a/crates/spfs/src/cli/cmd_migrate.rs b/crates/spfs/src/cli/cmd_migrate.rs index aa2a04bfb..422681d16 100644 --- a/crates/spfs/src/cli/cmd_migrate.rs +++ b/crates/spfs/src/cli/cmd_migrate.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use structopt::StructOpt; use spfs; diff --git a/crates/spfs/src/cli/cmd_platforms.rs b/crates/spfs/src/cli/cmd_platforms.rs index d435e13c3..bf12ff2c8 100644 --- a/crates/spfs/src/cli/cmd_platforms.rs +++ b/crates/spfs/src/cli/cmd_platforms.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use structopt::StructOpt; use spfs; diff --git a/crates/spfs/src/cli/cmd_pull.rs b/crates/spfs/src/cli/cmd_pull.rs index 5e400ebaa..7214c715f 100644 --- a/crates/spfs/src/cli/cmd_pull.rs +++ b/crates/spfs/src/cli/cmd_pull.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use structopt::StructOpt; use spfs; diff --git a/crates/spfs/src/cli/cmd_push.rs b/crates/spfs/src/cli/cmd_push.rs index 33a3b4a79..48957f80d 100644 --- a/crates/spfs/src/cli/cmd_push.rs +++ b/crates/spfs/src/cli/cmd_push.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use structopt::StructOpt; use spfs; diff --git a/crates/spfs/src/cli/cmd_read.rs b/crates/spfs/src/cli/cmd_read.rs index 29bcc523e..b54275b51 100644 --- a/crates/spfs/src/cli/cmd_read.rs +++ b/crates/spfs/src/cli/cmd_read.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use structopt::StructOpt; use spfs::{self, prelude::*}; diff --git a/crates/spfs/src/cli/cmd_render.rs b/crates/spfs/src/cli/cmd_render.rs index aa469b9dd..0d7e18017 100644 --- a/crates/spfs/src/cli/cmd_render.rs +++ b/crates/spfs/src/cli/cmd_render.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use structopt::StructOpt; use spfs; diff --git a/crates/spfs/src/cli/cmd_reset.rs b/crates/spfs/src/cli/cmd_reset.rs index 37da1ee29..746f907a7 100644 --- a/crates/spfs/src/cli/cmd_reset.rs +++ b/crates/spfs/src/cli/cmd_reset.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use spfs::prelude::*; use structopt::StructOpt; diff --git a/crates/spfs/src/cli/cmd_run.rs b/crates/spfs/src/cli/cmd_run.rs index 3c61c1018..45dbc967d 100644 --- a/crates/spfs/src/cli/cmd_run.rs +++ b/crates/spfs/src/cli/cmd_run.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use std::ffi::OsString; use structopt::StructOpt; diff --git a/crates/spfs/src/cli/cmd_run_main.rs b/crates/spfs/src/cli/cmd_run_main.rs index 5e11973cf..756ae7bb9 100644 --- a/crates/spfs/src/cli/cmd_run_main.rs +++ b/crates/spfs/src/cli/cmd_run_main.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + #[macro_use] mod args; mod cmd_run; diff --git a/crates/spfs/src/cli/cmd_runtimes.rs b/crates/spfs/src/cli/cmd_runtimes.rs index 25ab6b652..333854557 100644 --- a/crates/spfs/src/cli/cmd_runtimes.rs +++ b/crates/spfs/src/cli/cmd_runtimes.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use structopt::StructOpt; use spfs; diff --git a/crates/spfs/src/cli/cmd_search.rs b/crates/spfs/src/cli/cmd_search.rs index d8baa40da..6f2e3077b 100644 --- a/crates/spfs/src/cli/cmd_search.rs +++ b/crates/spfs/src/cli/cmd_search.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use structopt::StructOpt; use spfs; diff --git a/crates/spfs/src/cli/cmd_shell.rs b/crates/spfs/src/cli/cmd_shell.rs index d4fec713b..f0c40549b 100644 --- a/crates/spfs/src/cli/cmd_shell.rs +++ b/crates/spfs/src/cli/cmd_shell.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use structopt::StructOpt; use spfs; diff --git a/crates/spfs/src/cli/cmd_tag.rs b/crates/spfs/src/cli/cmd_tag.rs index 5fd75239b..0e4ae481d 100644 --- a/crates/spfs/src/cli/cmd_tag.rs +++ b/crates/spfs/src/cli/cmd_tag.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use structopt::StructOpt; use spfs::{self, prelude::*}; diff --git a/crates/spfs/src/cli/cmd_tags.rs b/crates/spfs/src/cli/cmd_tags.rs index e066acc92..1bc73ec8f 100644 --- a/crates/spfs/src/cli/cmd_tags.rs +++ b/crates/spfs/src/cli/cmd_tags.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use structopt::StructOpt; use spfs; diff --git a/crates/spfs/src/cli/cmd_version.rs b/crates/spfs/src/cli/cmd_version.rs index f1afd95d9..410349256 100644 --- a/crates/spfs/src/cli/cmd_version.rs +++ b/crates/spfs/src/cli/cmd_version.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use structopt::StructOpt; use spfs; diff --git a/crates/spfs/src/commit.rs b/crates/spfs/src/commit.rs index 51f84ad54..4828ba4aa 100644 --- a/crates/spfs/src/commit.rs +++ b/crates/spfs/src/commit.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use super::config::load_config; use super::status::remount_runtime; use crate::prelude::*; diff --git a/crates/spfs/src/commit_test.rs b/crates/spfs/src/commit_test.rs index a059f2d6c..2ea998504 100644 --- a/crates/spfs/src/commit_test.rs +++ b/crates/spfs/src/commit_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use rstest::rstest; use super::{commit_layer, commit_platform}; diff --git a/crates/spfs/src/config.rs b/crates/spfs/src/config.rs index c8fc1f2bf..36e9148a8 100644 --- a/crates/spfs/src/config.rs +++ b/crates/spfs/src/config.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use config::{Config as ConfigBase, Environment, File}; use crate::{runtime, storage, Result}; diff --git a/crates/spfs/src/config_test.rs b/crates/spfs/src/config_test.rs index e62e8b705..0f84a62d7 100644 --- a/crates/spfs/src/config_test.rs +++ b/crates/spfs/src/config_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use rstest::rstest; use super::Config; diff --git a/crates/spfs/src/diff.rs b/crates/spfs/src/diff.rs index 186f1dc0d..0552a0200 100644 --- a/crates/spfs/src/diff.rs +++ b/crates/spfs/src/diff.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use super::resolve::compute_manifest; use super::status::{active_runtime, compute_runtime_manifest}; use crate::{tracking, Result}; diff --git a/crates/spfs/src/encoding/binary.rs b/crates/spfs/src/encoding/binary.rs index 7ee1d5a21..f70a9a52b 100644 --- a/crates/spfs/src/encoding/binary.rs +++ b/crates/spfs/src/encoding/binary.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use std::io::{Read, Write}; use unicode_reader::CodePoints; diff --git a/crates/spfs/src/encoding/binary_test.rs b/crates/spfs/src/encoding/binary_test.rs index e1e9f8702..06d541661 100644 --- a/crates/spfs/src/encoding/binary_test.rs +++ b/crates/spfs/src/encoding/binary_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use rand::Rng; use std::io::{Cursor, Read, Seek, SeekFrom, Write}; diff --git a/crates/spfs/src/encoding/hash.rs b/crates/spfs/src/encoding/hash.rs index 4ea7c24f7..6444f4147 100644 --- a/crates/spfs/src/encoding/hash.rs +++ b/crates/spfs/src/encoding/hash.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use std::convert::{TryFrom, TryInto}; use std::fmt::Display; use std::io::{Read, Write}; diff --git a/crates/spfs/src/encoding/mod.rs b/crates/spfs/src/encoding/mod.rs index 9befebd3d..a6369b72d 100644 --- a/crates/spfs/src/encoding/mod.rs +++ b/crates/spfs/src/encoding/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + mod binary; pub use binary::{ consume_header, read_digest, read_int, read_string, read_uint, write_digest, write_header, diff --git a/crates/spfs/src/encoding/prelude.rs b/crates/spfs/src/encoding/prelude.rs index 9a47d55aa..b36938820 100644 --- a/crates/spfs/src/encoding/prelude.rs +++ b/crates/spfs/src/encoding/prelude.rs @@ -1 +1,5 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + pub use super::{Decodable, Encodable}; diff --git a/crates/spfs/src/env.rs b/crates/spfs/src/env.rs index 5ebec4f42..b61606809 100644 --- a/crates/spfs/src/env.rs +++ b/crates/spfs/src/env.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + //! Functions related to the setup and management of the spfs runtime environment //! and related system namespacing use std::os::unix::io::AsRawFd; diff --git a/crates/spfs/src/error.rs b/crates/spfs/src/error.rs index 20a459d2b..c82e092a8 100644 --- a/crates/spfs/src/error.rs +++ b/crates/spfs/src/error.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use std::io; use super::commit::NothingToCommitError; diff --git a/crates/spfs/src/fixtures.rs b/crates/spfs/src/fixtures.rs index 04daf6216..e405ce796 100644 --- a/crates/spfs/src/fixtures.rs +++ b/crates/spfs/src/fixtures.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + macro_rules! fixtures { () => { use rstest::fixture; diff --git a/crates/spfs/src/graph/blob.rs b/crates/spfs/src/graph/blob.rs index b33636367..e1693c100 100644 --- a/crates/spfs/src/graph/blob.rs +++ b/crates/spfs/src/graph/blob.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use crate::encoding; use crate::Result; diff --git a/crates/spfs/src/graph/database.rs b/crates/spfs/src/graph/database.rs index 289a2ff6e..8dd0ae13e 100644 --- a/crates/spfs/src/graph/database.rs +++ b/crates/spfs/src/graph/database.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use std::collections::VecDeque; use super::{ diff --git a/crates/spfs/src/graph/entry.rs b/crates/spfs/src/graph/entry.rs index 7b232009a..d91ac47a3 100644 --- a/crates/spfs/src/graph/entry.rs +++ b/crates/spfs/src/graph/entry.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use crate::encoding; use crate::tracking; use crate::Result; diff --git a/crates/spfs/src/graph/entry_test.rs b/crates/spfs/src/graph/entry_test.rs index 9320fc0da..b196deb9e 100644 --- a/crates/spfs/src/graph/entry_test.rs +++ b/crates/spfs/src/graph/entry_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use rstest::rstest; use super::Entry; diff --git a/crates/spfs/src/graph/error.rs b/crates/spfs/src/graph/error.rs index af1fba50c..9ab007b48 100644 --- a/crates/spfs/src/graph/error.rs +++ b/crates/spfs/src/graph/error.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use crate::{encoding, Error}; /// Denotes a missing object or one that is not present in the database. diff --git a/crates/spfs/src/graph/layer.rs b/crates/spfs/src/graph/layer.rs index c4d73164b..4bcfbe83b 100644 --- a/crates/spfs/src/graph/layer.rs +++ b/crates/spfs/src/graph/layer.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use crate::encoding; use crate::Result; diff --git a/crates/spfs/src/graph/layer_test.rs b/crates/spfs/src/graph/layer_test.rs index 01a0c8b9f..ee5380154 100644 --- a/crates/spfs/src/graph/layer_test.rs +++ b/crates/spfs/src/graph/layer_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use rstest::rstest; use super::Layer; diff --git a/crates/spfs/src/graph/manifest.rs b/crates/spfs/src/graph/manifest.rs index f85bc0940..46c6a6fd0 100644 --- a/crates/spfs/src/graph/manifest.rs +++ b/crates/spfs/src/graph/manifest.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use std::collections::{BTreeMap, BTreeSet}; use super::{Entry, Tree}; diff --git a/crates/spfs/src/graph/manifest_test.rs b/crates/spfs/src/graph/manifest_test.rs index 1c95708a9..b5af5cda1 100644 --- a/crates/spfs/src/graph/manifest_test.rs +++ b/crates/spfs/src/graph/manifest_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use rstest::rstest; use super::Entry; diff --git a/crates/spfs/src/graph/mod.rs b/crates/spfs/src/graph/mod.rs index 7341892c5..ec9384c81 100644 --- a/crates/spfs/src/graph/mod.rs +++ b/crates/spfs/src/graph/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + ///! Low-level digraph representation and manipulation for data storage. mod blob; mod database; diff --git a/crates/spfs/src/graph/object.rs b/crates/spfs/src/graph/object.rs index c0ef5f005..a342b3491 100644 --- a/crates/spfs/src/graph/object.rs +++ b/crates/spfs/src/graph/object.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use super::Blob; use super::Layer; use super::Manifest; diff --git a/crates/spfs/src/graph/operations.rs b/crates/spfs/src/graph/operations.rs index 2a12abefb..0303c08d4 100644 --- a/crates/spfs/src/graph/operations.rs +++ b/crates/spfs/src/graph/operations.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use std::collections::HashSet; use super::database::DatabaseView; diff --git a/crates/spfs/src/graph/platform.rs b/crates/spfs/src/graph/platform.rs index cf4ad509a..216dd0720 100644 --- a/crates/spfs/src/graph/platform.rs +++ b/crates/spfs/src/graph/platform.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use crate::encoding; use crate::encoding::Encodable; use crate::Result; diff --git a/crates/spfs/src/graph/platform_test.rs b/crates/spfs/src/graph/platform_test.rs index b27b9935e..d6b82b0ef 100644 --- a/crates/spfs/src/graph/platform_test.rs +++ b/crates/spfs/src/graph/platform_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use rstest::rstest; use super::Platform; diff --git a/crates/spfs/src/graph/tree.rs b/crates/spfs/src/graph/tree.rs index d3c71ec2a..16202688e 100644 --- a/crates/spfs/src/graph/tree.rs +++ b/crates/spfs/src/graph/tree.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use std::collections::BTreeSet; use super::Entry; diff --git a/crates/spfs/src/graph/tree_test.rs b/crates/spfs/src/graph/tree_test.rs index 0968a43e6..060182997 100644 --- a/crates/spfs/src/graph/tree_test.rs +++ b/crates/spfs/src/graph/tree_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use rstest::rstest; use super::{Entry, Tree}; diff --git a/crates/spfs/src/io.rs b/crates/spfs/src/io.rs index 56f5ab0f7..62b47056d 100644 --- a/crates/spfs/src/io.rs +++ b/crates/spfs/src/io.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use colored::*; use crate::{encoding, storage, tracking, Error, Result}; diff --git a/crates/spfs/src/lib.rs b/crates/spfs/src/lib.rs index 7e23b903b..a6b6e20ce 100644 --- a/crates/spfs/src/lib.rs +++ b/crates/spfs/src/lib.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + //! Filesystem isolation, capture and distribution. #[macro_use] diff --git a/crates/spfs/src/ls_tags.rs b/crates/spfs/src/ls_tags.rs index 15d5846fe..98e589b4a 100644 --- a/crates/spfs/src/ls_tags.rs +++ b/crates/spfs/src/ls_tags.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use super::config::load_config; use super::storage::prelude::*; use crate::Result; diff --git a/crates/spfs/src/prelude.rs b/crates/spfs/src/prelude.rs index 93c985328..a3de157f4 100644 --- a/crates/spfs/src/prelude.rs +++ b/crates/spfs/src/prelude.rs @@ -1,2 +1,6 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + pub use crate::encoding::prelude::*; pub use crate::storage::prelude::*; diff --git a/crates/spfs/src/prune.rs b/crates/spfs/src/prune.rs index c4e2c687b..3ffdd7c79 100644 --- a/crates/spfs/src/prune.rs +++ b/crates/spfs/src/prune.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use chrono::prelude::*; use crate::{storage, tracking, Result}; diff --git a/crates/spfs/src/prune_test.rs b/crates/spfs/src/prune_test.rs index d2f55f13c..78af30942 100644 --- a/crates/spfs/src/prune_test.rs +++ b/crates/spfs/src/prune_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use chrono::{TimeZone, Utc}; use rstest::rstest; diff --git a/crates/spfs/src/resolve.rs b/crates/spfs/src/resolve.rs index eb8a7ea50..b47d1fdbe 100644 --- a/crates/spfs/src/resolve.rs +++ b/crates/spfs/src/resolve.rs @@ -1,3 +1,6 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk use std::{collections::HashSet, iter::FromIterator, path::Path}; use indicatif::ParallelProgressIterator; diff --git a/crates/spfs/src/runtime/csh_exp.rs b/crates/spfs/src/runtime/csh_exp.rs index e08bac6d1..904fa3770 100644 --- a/crates/spfs/src/runtime/csh_exp.rs +++ b/crates/spfs/src/runtime/csh_exp.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + pub static SOURCE: &str = r#" set shell [lindex $argv 0] set startup_script [lindex $argv 1] diff --git a/crates/spfs/src/runtime/mod.rs b/crates/spfs/src/runtime/mod.rs index ca011a88d..04a1fa197 100644 --- a/crates/spfs/src/runtime/mod.rs +++ b/crates/spfs/src/runtime/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + //! Handles the setup and initialization of runtime environments mod csh_exp; diff --git a/crates/spfs/src/runtime/overlayfs.rs b/crates/spfs/src/runtime/overlayfs.rs index 4570fa7f1..883960bd4 100644 --- a/crates/spfs/src/runtime/overlayfs.rs +++ b/crates/spfs/src/runtime/overlayfs.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use std::os::unix::fs::MetadataExt; pub fn is_removed_entry(meta: &std::fs::Metadata) -> bool { diff --git a/crates/spfs/src/runtime/startup_csh.rs b/crates/spfs/src/runtime/startup_csh.rs index 8f46f989c..0bddf7218 100644 --- a/crates/spfs/src/runtime/startup_csh.rs +++ b/crates/spfs/src/runtime/startup_csh.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + pub static SOURCE: &str = r#"#!/usr/bin/env csh if ( -f ~/.tcshrc ) then source ~/.tcshrc || true diff --git a/crates/spfs/src/runtime/startup_sh.rs b/crates/spfs/src/runtime/startup_sh.rs index e064f12e7..5f8a056a2 100644 --- a/crates/spfs/src/runtime/startup_sh.rs +++ b/crates/spfs/src/runtime/startup_sh.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + pub static SOURCE: &str = r#"#!/usr/bin/env sh if [[ -f ~/.bashrc ]]; then source ~/.bashrc || true diff --git a/crates/spfs/src/runtime/storage.rs b/crates/spfs/src/runtime/storage.rs index 281122aca..a314ac42b 100644 --- a/crates/spfs/src/runtime/storage.rs +++ b/crates/spfs/src/runtime/storage.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + ///! Local file system storage of runtimes. use std::ffi::OsStr; use std::os::unix::fs::{MetadataExt, PermissionsExt}; diff --git a/crates/spfs/src/runtime/storage_test.rs b/crates/spfs/src/runtime/storage_test.rs index d7c6ab4bf..ddbdb6b68 100644 --- a/crates/spfs/src/runtime/storage_test.rs +++ b/crates/spfs/src/runtime/storage_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use std::ffi::OsStr; use std::os::unix::fs::PermissionsExt; diff --git a/crates/spfs/src/status.rs b/crates/spfs/src/status.rs index 8908c9803..48ab7824d 100644 --- a/crates/spfs/src/status.rs +++ b/crates/spfs/src/status.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use super::config::{load_config, Config}; use super::resolve::{resolve_overlay_dirs, resolve_stack_to_layers}; use crate::{bootstrap, env, prelude::*, runtime, tracking, Error, Result}; diff --git a/crates/spfs/src/storage/blob.rs b/crates/spfs/src/storage/blob.rs index 8ef119348..0c38cca36 100644 --- a/crates/spfs/src/storage/blob.rs +++ b/crates/spfs/src/storage/blob.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use crate::{encoding, graph, Result}; pub trait BlobStorage: graph::Database { diff --git a/crates/spfs/src/storage/fs/database.rs b/crates/spfs/src/storage/fs/database.rs index 7f1b744a2..2713a0211 100644 --- a/crates/spfs/src/storage/fs/database.rs +++ b/crates/spfs/src/storage/fs/database.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use std::os::unix::fs::PermissionsExt; use crate::graph::Object; diff --git a/crates/spfs/src/storage/fs/database_test.rs b/crates/spfs/src/storage/fs/database_test.rs index 1ae49783f..744aa8425 100644 --- a/crates/spfs/src/storage/fs/database_test.rs +++ b/crates/spfs/src/storage/fs/database_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + from typing import Any, BinaryIO, Tuple, Optional import time import multiprocessing diff --git a/crates/spfs/src/storage/fs/hash_store.rs b/crates/spfs/src/storage/fs/hash_store.rs index 93599ea8a..073162835 100644 --- a/crates/spfs/src/storage/fs/hash_store.rs +++ b/crates/spfs/src/storage/fs/hash_store.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use std::ffi::OsStr; use std::io::ErrorKind; use std::os::unix::fs::PermissionsExt; diff --git a/crates/spfs/src/storage/fs/layer_test.rs b/crates/spfs/src/storage/fs/layer_test.rs index bcae63f73..37556bd73 100644 --- a/crates/spfs/src/storage/fs/layer_test.rs +++ b/crates/spfs/src/storage/fs/layer_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + import os import py.path diff --git a/crates/spfs/src/storage/fs/migrations/mod.rs b/crates/spfs/src/storage/fs/migrations/mod.rs index f76619648..5de317047 100644 --- a/crates/spfs/src/storage/fs/migrations/mod.rs +++ b/crates/spfs/src/storage/fs/migrations/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use std::path::{Path, PathBuf}; use super::read_last_migration_version; diff --git a/crates/spfs/src/storage/fs/mod.rs b/crates/spfs/src/storage/fs/mod.rs index 88682fa64..861293d46 100644 --- a/crates/spfs/src/storage/fs/mod.rs +++ b/crates/spfs/src/storage/fs/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + //! Uses a local directory on disk to store the spfs repository. mod database; diff --git a/crates/spfs/src/storage/fs/payloads.rs b/crates/spfs/src/storage/fs/payloads.rs index 583a7d62f..dddaa89ff 100644 --- a/crates/spfs/src/storage/fs/payloads.rs +++ b/crates/spfs/src/storage/fs/payloads.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use std::io::ErrorKind; use super::FSRepository; diff --git a/crates/spfs/src/storage/fs/payloads_test.rs b/crates/spfs/src/storage/fs/payloads_test.rs index c1ecc597b..fddc084d7 100644 --- a/crates/spfs/src/storage/fs/payloads_test.rs +++ b/crates/spfs/src/storage/fs/payloads_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + import py.path from ._payloads import makedirs_with_perms diff --git a/crates/spfs/src/storage/fs/renderer.rs b/crates/spfs/src/storage/fs/renderer.rs index 3493ae9cd..5bcf7eeb3 100644 --- a/crates/spfs/src/storage/fs/renderer.rs +++ b/crates/spfs/src/storage/fs/renderer.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use std::os::unix::fs::PermissionsExt; use std::path::{Path, PathBuf}; diff --git a/crates/spfs/src/storage/fs/renderer_test.rs b/crates/spfs/src/storage/fs/renderer_test.rs index 7457aa00d..7385bf68a 100644 --- a/crates/spfs/src/storage/fs/renderer_test.rs +++ b/crates/spfs/src/storage/fs/renderer_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use rstest::rstest; use super::was_render_completed; diff --git a/crates/spfs/src/storage/fs/repository.rs b/crates/spfs/src/storage/fs/repository.rs index 585eda12b..d77e3cefe 100644 --- a/crates/spfs/src/storage/fs/repository.rs +++ b/crates/spfs/src/storage/fs/repository.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use std::path::{Path, PathBuf}; use super::FSHashStore; diff --git a/crates/spfs/src/storage/fs/tag.rs b/crates/spfs/src/storage/fs/tag.rs index 1836694d0..80b5768b7 100644 --- a/crates/spfs/src/storage/fs/tag.rs +++ b/crates/spfs/src/storage/fs/tag.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use std::{ ffi::OsStr, os::unix::fs::PermissionsExt, diff --git a/crates/spfs/src/storage/fs/tag_test.rs b/crates/spfs/src/storage/fs/tag_test.rs index 0cb614fbb..65d3a5a32 100644 --- a/crates/spfs/src/storage/fs/tag_test.rs +++ b/crates/spfs/src/storage/fs/tag_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use std::os::unix::fs::MetadataExt; use rstest::rstest; diff --git a/crates/spfs/src/storage/layer.rs b/crates/spfs/src/storage/layer.rs index 610382892..e652f2791 100644 --- a/crates/spfs/src/storage/layer.rs +++ b/crates/spfs/src/storage/layer.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use crate::{encoding, graph, Result}; use encoding::Encodable; diff --git a/crates/spfs/src/storage/layer_test.rs b/crates/spfs/src/storage/layer_test.rs index 6f2413ef1..391e3cd4a 100644 --- a/crates/spfs/src/storage/layer_test.rs +++ b/crates/spfs/src/storage/layer_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + import io from .. import encoding diff --git a/crates/spfs/src/storage/manifest.rs b/crates/spfs/src/storage/manifest.rs index 2019af12b..43777211e 100644 --- a/crates/spfs/src/storage/manifest.rs +++ b/crates/spfs/src/storage/manifest.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use crate::{encoding, graph, Result}; #[cfg(test)] diff --git a/crates/spfs/src/storage/manifest_entry_test.rs b/crates/spfs/src/storage/manifest_entry_test.rs index 5cb50d7d7..dbb13d89a 100644 --- a/crates/spfs/src/storage/manifest_entry_test.rs +++ b/crates/spfs/src/storage/manifest_entry_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + from .. import encoding, tracking from ._manifest import Entry diff --git a/crates/spfs/src/storage/manifest_test.rs b/crates/spfs/src/storage/manifest_test.rs index 0cd84f8ba..968bedc15 100644 --- a/crates/spfs/src/storage/manifest_test.rs +++ b/crates/spfs/src/storage/manifest_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use rstest::rstest; use crate::graph::{Database, DatabaseView, Manifest}; diff --git a/crates/spfs/src/storage/mod.rs b/crates/spfs/src/storage/mod.rs index b4f544681..4297ff9d4 100644 --- a/crates/spfs/src/storage/mod.rs +++ b/crates/spfs/src/storage/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + mod blob; mod layer; mod manifest; diff --git a/crates/spfs/src/storage/payload.rs b/crates/spfs/src/storage/payload.rs index a77da0acd..7ee3d1543 100644 --- a/crates/spfs/src/storage/payload.rs +++ b/crates/spfs/src/storage/payload.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use crate::encoding; use crate::Result; diff --git a/crates/spfs/src/storage/platform.rs b/crates/spfs/src/storage/platform.rs index 263a361da..f84b1c044 100644 --- a/crates/spfs/src/storage/platform.rs +++ b/crates/spfs/src/storage/platform.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use crate::{encoding, graph, Result}; pub trait PlatformStorage: graph::Database { diff --git a/crates/spfs/src/storage/platform_test.rs b/crates/spfs/src/storage/platform_test.rs index 57410ed9e..30d5146c5 100644 --- a/crates/spfs/src/storage/platform_test.rs +++ b/crates/spfs/src/storage/platform_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + import io from .. import graph, encoding diff --git a/crates/spfs/src/storage/prelude.rs b/crates/spfs/src/storage/prelude.rs index 196c5f2cf..edc563a11 100644 --- a/crates/spfs/src/storage/prelude.rs +++ b/crates/spfs/src/storage/prelude.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + pub use super::{ BlobStorage, LayerStorage, ManifestStorage, ManifestViewer, PayloadStorage, PlatformStorage, Repository, RepositoryHandle, TagStorage, diff --git a/crates/spfs/src/storage/registry.rs b/crates/spfs/src/storage/registry.rs index df1772f1d..885555afb 100644 --- a/crates/spfs/src/storage/registry.rs +++ b/crates/spfs/src/storage/registry.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + from typing import Dict, Callable import urllib.parse diff --git a/crates/spfs/src/storage/repository.rs b/crates/spfs/src/storage/repository.rs index 7ffe86f99..f32a74c17 100644 --- a/crates/spfs/src/storage/repository.rs +++ b/crates/spfs/src/storage/repository.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use std::collections::HashSet; use super::ManifestViewer; diff --git a/crates/spfs/src/storage/repository_test.rs b/crates/spfs/src/storage/repository_test.rs index 1ba98c2f9..3bd5088d0 100644 --- a/crates/spfs/src/storage/repository_test.rs +++ b/crates/spfs/src/storage/repository_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use std::collections::HashSet; use std::iter::FromIterator; use std::os::unix::fs::MetadataExt; diff --git a/crates/spfs/src/storage/tag.rs b/crates/spfs/src/storage/tag.rs index 302362a07..85eb3c673 100644 --- a/crates/spfs/src/storage/tag.rs +++ b/crates/spfs/src/storage/tag.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use crate::{encoding, tracking, Result}; use encoding::Encodable; use relative_path::RelativePath; diff --git a/crates/spfs/src/storage/tar/mod.rs b/crates/spfs/src/storage/tar/mod.rs index 5ce84191f..9e6d5586f 100644 --- a/crates/spfs/src/storage/tar/mod.rs +++ b/crates/spfs/src/storage/tar/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + //! An spfs storage implementation where all data is unpacked and repacked //! into a tar archive on disk diff --git a/crates/spfs/src/storage/tar/repository.rs b/crates/spfs/src/storage/tar/repository.rs index d6becaf37..fb00de13a 100644 --- a/crates/spfs/src/storage/tar/repository.rs +++ b/crates/spfs/src/storage/tar/repository.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use std::path::Path; use tar::{Archive, Builder}; diff --git a/crates/spfs/src/sync.rs b/crates/spfs/src/sync.rs index 80c90f46d..6f0750a2d 100644 --- a/crates/spfs/src/sync.rs +++ b/crates/spfs/src/sync.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use indicatif::ParallelProgressIterator; use rayon::prelude::*; diff --git a/crates/spfs/src/sync_test.rs b/crates/spfs/src/sync_test.rs index 986d0e811..c286d3930 100644 --- a/crates/spfs/src/sync_test.rs +++ b/crates/spfs/src/sync_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use rstest::rstest; use super::{push_ref, sync_ref}; diff --git a/crates/spfs/src/tracking/diff.rs b/crates/spfs/src/tracking/diff.rs index 5c8f60f7e..9935024e7 100644 --- a/crates/spfs/src/tracking/diff.rs +++ b/crates/spfs/src/tracking/diff.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use std::collections::HashSet; use relative_path::RelativePathBuf; diff --git a/crates/spfs/src/tracking/diff_test.rs b/crates/spfs/src/tracking/diff_test.rs index a2b66e96a..15e8b99b5 100644 --- a/crates/spfs/src/tracking/diff_test.rs +++ b/crates/spfs/src/tracking/diff_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use rstest::rstest; use super::{compute_diff, Diff, DiffMode}; diff --git a/crates/spfs/src/tracking/entry.rs b/crates/spfs/src/tracking/entry.rs index d507e554a..2a2b961bc 100644 --- a/crates/spfs/src/tracking/entry.rs +++ b/crates/spfs/src/tracking/entry.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use std::str::FromStr; use std::string::ToString; diff --git a/crates/spfs/src/tracking/env.rs b/crates/spfs/src/tracking/env.rs index febeab521..c7e3b08df 100644 --- a/crates/spfs/src/tracking/env.rs +++ b/crates/spfs/src/tracking/env.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use super::tag::TagSpec; use crate::encoding; use crate::{Error, Result}; diff --git a/crates/spfs/src/tracking/env_test.rs b/crates/spfs/src/tracking/env_test.rs index aa9a84e35..7b833f0d2 100644 --- a/crates/spfs/src/tracking/env_test.rs +++ b/crates/spfs/src/tracking/env_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use rstest::rstest; use super::EnvSpec; diff --git a/crates/spfs/src/tracking/manifest.rs b/crates/spfs/src/tracking/manifest.rs index 8452079c3..9eea079bc 100644 --- a/crates/spfs/src/tracking/manifest.rs +++ b/crates/spfs/src/tracking/manifest.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use std::os::unix::ffi::OsStrExt; use std::os::unix::fs::MetadataExt; diff --git a/crates/spfs/src/tracking/manifest_test.rs b/crates/spfs/src/tracking/manifest_test.rs index 0544a1358..904fd5234 100644 --- a/crates/spfs/src/tracking/manifest_test.rs +++ b/crates/spfs/src/tracking/manifest_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use rstest::rstest; use super::{compute_manifest, EntryKind, Manifest}; diff --git a/crates/spfs/src/tracking/mod.rs b/crates/spfs/src/tracking/mod.rs index 1d529b6c9..a23869bdc 100644 --- a/crates/spfs/src/tracking/mod.rs +++ b/crates/spfs/src/tracking/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + ///! Object tracking and definitions mod diff; pub use diff::{compute_diff, Diff, DiffMode}; diff --git a/crates/spfs/src/tracking/object.rs b/crates/spfs/src/tracking/object.rs index b7d894f57..8ae0f9ee7 100644 --- a/crates/spfs/src/tracking/object.rs +++ b/crates/spfs/src/tracking/object.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use crate::encoding; use super::entry::Entry; diff --git a/crates/spfs/src/tracking/tag.rs b/crates/spfs/src/tracking/tag.rs index cc288606f..767181a62 100644 --- a/crates/spfs/src/tracking/tag.rs +++ b/crates/spfs/src/tracking/tag.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use chrono::prelude::*; use crate::encoding; diff --git a/crates/spfs/src/tracking/tag_test.rs b/crates/spfs/src/tracking/tag_test.rs index ccf547741..e27f64cdd 100644 --- a/crates/spfs/src/tracking/tag_test.rs +++ b/crates/spfs/src/tracking/tag_test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2021 Sony Pictures Imageworks, et al. +// SPDX-License-Identifier: Apache-2.0 +// https://github.com/imageworks/spk + use rstest::rstest; use super::{split_tag_spec, Tag, TagSpec}; diff --git a/crates/spfs/tests/integration/run_tests.sh b/crates/spfs/tests/integration/run_tests.sh index eca2078de..d55b11d1c 100755 --- a/crates/spfs/tests/integration/run_tests.sh +++ b/crates/spfs/tests/integration/run_tests.sh @@ -1,4 +1,9 @@ #!/bin/bash + +# Copyright (c) 2021 Sony Pictures Imageworks, et al. +# SPDX-License-Identifier: Apache-2.0 +# https://github.com/imageworks/spk + ## Run all integration tests in this folder # these are expected to be run off of the installed spfs binaries # with the proper capabilities diff --git a/crates/spfs/tests/integration/test_remount_save_changes.sh b/crates/spfs/tests/integration/test_remount_save_changes.sh index 286067762..11f167110 100644 --- a/crates/spfs/tests/integration/test_remount_save_changes.sh +++ b/crates/spfs/tests/integration/test_remount_save_changes.sh @@ -1,4 +1,9 @@ #!/bin/bash + +# Copyright (c) 2021 Sony Pictures Imageworks, et al. +# SPDX-License-Identifier: Apache-2.0 +# https://github.com/imageworks/spk + # test that a removed directory does not show up when running the env later filepath="/spfs/file1"; diff --git a/crates/spfs/tests/integration/test_runtime_dir_removal.sh b/crates/spfs/tests/integration/test_runtime_dir_removal.sh index 6d452f7a7..847177d4e 100644 --- a/crates/spfs/tests/integration/test_runtime_dir_removal.sh +++ b/crates/spfs/tests/integration/test_runtime_dir_removal.sh @@ -1,4 +1,9 @@ #!/bin/bash + +# Copyright (c) 2021 Sony Pictures Imageworks, et al. +# SPDX-License-Identifier: Apache-2.0 +# https://github.com/imageworks/spk + # test that a removed directory does not show up when running the env later dirpath="/spfs/dir1/dir2/dir3"; diff --git a/crates/spfs/tests/integration/test_runtime_file_removal.sh b/crates/spfs/tests/integration/test_runtime_file_removal.sh index 1ec159ff1..8747dcd1a 100644 --- a/crates/spfs/tests/integration/test_runtime_file_removal.sh +++ b/crates/spfs/tests/integration/test_runtime_file_removal.sh @@ -1,5 +1,9 @@ - #!/bin/bash + +# Copyright (c) 2021 Sony Pictures Imageworks, et al. +# SPDX-License-Identifier: Apache-2.0 +# https://github.com/imageworks/spk + # test that a removed file is masked in future environments filename="/spfs/message.txt"; diff --git a/crates/spfs/tests/integration/test_runtime_recursion.sh b/crates/spfs/tests/integration/test_runtime_recursion.sh index 46fe4b22a..1a871a7bf 100644 --- a/crates/spfs/tests/integration/test_runtime_recursion.sh +++ b/crates/spfs/tests/integration/test_runtime_recursion.sh @@ -1,4 +1,9 @@ #!/bin/bash + +# Copyright (c) 2021 Sony Pictures Imageworks, et al. +# SPDX-License-Identifier: Apache-2.0 +# https://github.com/imageworks/spk + # test that spfs can be run from within spfs out=$(spfs run '' -- sh -c 'spfs edit --off && spfs run - -- echo hello')