Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: https://github.com/diskfs/go-diskfs Upstream-Name: go-diskfs Upstream-Contact: https://github.com/diskfs/go-diskfs/issues Files-Excluded: filesystem/squashfs/testdata/tools examples/create-iso-from-folder/my-folder/gopher.gif filesystem/squashfs/testdata/file2_uncompressed.sqs Comment: filesystem/squashfs/testdata/tools holds mksquashfs and unsquashfs as checked-in ELF x86-64 executables, dynamically linked and not stripped, shipped with no source, no licence statement and no provenance note anywhere in the repository. gopher.gif is the Go gopher artwork, shipped without attribution or a licence statement. file2_uncompressed.sqs is a squashfs image that buildtestsqs.sh does not generate and no test reads, so unlike the other images it has no preferred form of modification in the tree. All three are removed from the source tarball. The remaining binary filesystem images under testdata are kept: each of those directories carries a README and a generator script (buildtestsqs.sh, buildtestiso.sh, mkfat32.sh, buildimg.sh), so their preferred form for modification is present. Files: * Copyright: 2017 Avi Deitcher License: Expat Files: filesystem/ext4/dirhash.go filesystem/ext4/md4/md4.go Copyright: 2002 Theodore Ts'o License: GPL-2 Comment: These two files carry no notice of their own, and upstream licenses the whole repository as Expat, but they are a transliteration of the ext4 directory hash: the constants (teaDelta 0x9E3779B9, k2 0o13240474631, k3 0o15666365641), the TEA loop, the f, g and h functions under the comment "basic MD4 functions", and a round() whose own comment says it "applies the round function as a macro", which is the C ROUND macro. The same code exists in two places. The Linux kernel ships it in fs/ext4/hash.c under GPL-2.0, and e2fsprogs in lib/ext2fs/dirhash.c under LGPL-2, both written by Theodore Ts'o. The constants and macros are identical in the two, so they do not say which one was used, but dirhash.go declares HashVersionSIP = 6 and siphash appears only in the kernel file. GPL-2 is therefore declared here, as the stricter of the two candidates. Upstream has been asked which file it was ported from, at https://github.com/diskfs/go-diskfs/issues/455 . If the answer is e2fsprogs, this becomes LGPL-2. Files: testhelper/docker.go Copyright: 2017 Avi Deitcher 2015-2017 Docker, Inc. License: Apache-2.0 Comment: The file says "thanks to moby/tool, which is licensed apache 2.0" and carries no notice of its own. github.com/moby/tool is Apache-2.0 and its NOTICE reads "Copyright 2015-2017 Docker, Inc."; the function here follows its src/moby/docker.go. Files: debian/* Copyright: 2026 Juan Manuel Méndez Rey License: Expat Comment: Debian packaging is licensed under the same terms as upstream License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . On Debian systems, the complete text of the GNU General Public License version 2 can be found in /usr/share/common-licenses/GPL-2. License: Apache-2.0 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at . https://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. . On Debian systems, the complete text of the Apache License, Version 2.0 can be found in /usr/share/common-licenses/Apache-2.0.