JuiceFS is a distributed POSIX file system built on top of Redis and S3.
209 matches across 9 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | cmd/format.go | 65 | # Create a simple test volume (data will be stored in a local directory) |
| MEDIUM | cmd/format.go | 68 | # Create a volume with Redis and S3 |
| MEDIUM | cmd/format.go | 71 | # Create a volume with password protected MySQL |
| MEDIUM | cmd/format.go | 76 | # Create a volume with "quota" enabled |
| MEDIUM | cmd/format.go | 79 | # Create a volume with "trash" disabled |
| MEDIUM | integration/s3gateway_test.sh | 605 | # Create a multipart struct file for completing multipart transaction |
| MEDIUM | integration/s3gateway_test.sh | 708 | # Create a multipart struct file for completing multipart transaction |
| MEDIUM | integration/s3gateway_test.sh | 1176 | # Create a multipart struct file for completing multipart transaction |
| MEDIUM | integration/s3gateway_test.sh | 1690 | # Create a multipart struct file for completing multipart transaction |
| MEDIUM | integration/s3gateway_test.sh | 2012 | # Create a multipart struct file for completing multipart transaction |
| MEDIUM | .github/scripts/apt_install.sh | 8 | # Define a function to run a command and check the return code |
| MEDIUM | .github/scripts/hypo/common.py | 49 | # Create a logger object |
| MEDIUM | .github/scripts/hypo/common.py | 54 | # Create a file handler for the logger |
| MEDIUM | .github/scripts/hypo/common.py | 57 | # Create a stream handler for the logger |
| MEDIUM | .github/scripts/hypo/common.py | 60 | # Create a formatter for the log messages |
| MEDIUM | .github/scripts/command/tier.sh | 899 | # Create a deep directory tree with files at every level |
| MEDIUM | .github/scripts/perf/ai_format_benchmark.py | 472 | # Create a simple ONNX model |
| MEDIUM | .github/scripts/perf/ai_format_benchmark.py | 479 | # Create a simple graph |
| MEDIUM | .github/scripts/perf/ai_format_benchmark.py | 628 | # Create a simple model |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | sdk/python/examples/fsspec/main.py | 5 | |
| LOW | sdk/python/examples/ffrecord/dataset.py | 21 | |
| LOW | sdk/python/examples/ffrecord/dataloader.py | 16 | |
| LOW | sdk/python/examples/ffrecord/dataloader.py | 17 | |
| LOW | sdk/python/examples/ffrecord/dataloader.py | 17 | |
| LOW | sdk/python/examples/ffrecord/dataloader.py | 17 | |
| LOW | sdk/python/examples/ffrecord/dataloader.py | 18 | |
| LOW | sdk/python/examples/ffrecord/filereader.py | 23 | |
| LOW | sdk/python/examples/ffrecord/filereader.py | 26 | |
| LOW | sdk/python/examples/ffrecord/filereader.py | 27 | |
| LOW | sdk/python/examples/ffrecord/filereader.py | 29 | |
| LOW | sdk/python/juicefs/tests/test.py | 6 | |
| LOW | sdk/python/juicefs/juicefs/__init__.py | 1 | |
| LOW | sdk/python/juicefs/juicefs/juicefs.py | 29 | |
| LOW | .github/scripts/flush_meta.py | 2 | |
| LOW | .github/scripts/flush_meta.py | 3 | |
| LOW | .github/scripts/flush_meta.py | 4 | |
| LOW | .github/scripts/fsrand.py | 39 | |
| LOW | .github/scripts/testVersionCompatible.py | 6 | |
| LOW | .github/scripts/testVersionCompatible.py | 9 | |
| LOW | .github/scripts/testVersionCompatible.py | 13 | |
| LOW | .github/scripts/testVersionCompatible.py | 16 | |
| LOW | .github/scripts/testVersionCompatible.py | 29 | |
| LOW | .github/scripts/testVersionCompatible.py | 30 | |
| LOW | .github/scripts/testVersionCompatible.py | 31 | |
| LOW | .github/scripts/wins_fs_test.py | 2 | |
| LOW | .github/scripts/wins_fs_test.py | 3 | |
| LOW | .github/scripts/hypo/sync.py | 9 | |
| LOW | .github/scripts/hypo/sync.py | 10 | |
| LOW | .github/scripts/hypo/sync.py | 10 | |
| LOW | .github/scripts/hypo/sync.py | 10 | |
| LOW | .github/scripts/hypo/sync.py | 12 | |
| LOW | .github/scripts/hypo/fs_test.py | 1 | |
| LOW | .github/scripts/hypo/file_op.py | 5 | |
| LOW | .github/scripts/hypo/file_op.py | 7 | |
| LOW | .github/scripts/hypo/file_op.py | 15 | |
| LOW | .github/scripts/hypo/file_op.py | 16 | |
| LOW | .github/scripts/hypo/file_op.py | 17 | |
| LOW | .github/scripts/hypo/file_op.py | 25 | |
| LOW | .github/scripts/hypo/command.py | 4 | |
| LOW | .github/scripts/hypo/command.py | 15 | |
| LOW | .github/scripts/hypo/command.py | 28 | |
| LOW | .github/scripts/hypo/command.py | 29 | |
| LOW | .github/scripts/hypo/command.py | 29 | |
| LOW | .github/scripts/hypo/command.py | 34 | |
| LOW | .github/scripts/hypo/s3_op.py | 23 | |
| LOW | .github/scripts/hypo/file.py | 2 | |
| LOW | .github/scripts/hypo/file.py | 12 | |
| LOW | .github/scripts/hypo/file.py | 16 | |
| LOW | .github/scripts/hypo/file.py | 19 | |
| LOW | .github/scripts/hypo/fs.py | 16 | |
| LOW | .github/scripts/hypo/fs_op.py | 15 | |
| LOW | .github/scripts/hypo/s3_test.py | 3 | |
| LOW | .github/scripts/hypo/s3.py | 3 | |
| LOW | .github/scripts/hypo/s3.py | 16 | |
| LOW | .github/scripts/hypo/s3.py | 17 | |
| LOW | .github/scripts/pysdk/pysdk_test.py | 6 | |
| LOW | .github/scripts/mutate/modify_sdk_pom.py | 4 | |
| LOW | .github/scripts/mutate/save_report.py | 4 | |
| LOW | .github/scripts/mutate/save_report.py | 7 | |
| 5 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | integration/ioctl_test.sh | 1 | #!/bin/bash |
| LOW | integration/s3gateway_test.sh | 1 | #!/bin/bash |
| LOW | hack/winfsp_headers/winfsp_fuse.h | 21 | */ |
| LOW | hack/winfsp_headers/winfsp_fuse.h | 41 | #endif |
| LOW | hack/winfsp_headers/winfsp_fuse.h | 221 | 0/*conv_to_win_path*/, \ |
| LOW | hack/winfsp_headers/winfsp_fuse.h | 241 | #define fuse_dev_t dev_t |
| LOW | hack/winfsp_headers/fuse_common.h | 41 | |
| LOW | hack/winfsp_headers/fuse_common.h | 61 | #define FUSE_IOCTL_RETRY (1 << 2) |
| LOW | docs/en/reference/how_to_set_up_metadata_engine.md | 401 | [general] |
| LOW | sdk/python/examples/ffrecord/dataset.py | 1 | # encoding: utf-8 |
| LOW | sdk/python/examples/ffrecord/filereader_dio.py | 1 | # encoding: utf-8 |
| LOW | sdk/python/examples/ffrecord/dataloader.py | 1 | # encoding: utf-8 |
| LOW | sdk/python/examples/ffrecord/filereader.py | 1 | # encoding: utf-8 |
| LOW | sdk/python/examples/ffrecord/main.py | 1 | # encoding: utf-8 |
| LOW | sdk/python/juicefs/juicefs/spec.py | 1 | # encoding: utf-8 |
| LOW | sdk/python/juicefs/juicefs/juicefs.py | 1 | # encoding: utf-8 |
| LOW | sdk/java/kerberos.sh | 1 | #!/bin/sh |
| LOW | sdk/java/libjfs/bridge.go | 1 | // Copyright 2016 The Prometheus Authors |
| LOW | sdk/java/libjfs/bridge_test.go | 1 | // Copyright 2018 The Prometheus Authors |
| LOW | sdk/java/libjfs/remote_write_test.go | 1 | // Copyright 2025 JuiceFS Authors |
| LOW | sdk/java/libjfs/remote_write.go | 1 | // Copyright 2025 JuiceFS Authors |
| LOW | .github/workflows/codeql-analysis.yml | 1 | # For most projects, this workflow file will not need changing; you simply need |
| LOW | .github/workflows/codeql-analysis.yml | 61 | # By default, queries listed here will override any specified in a config file. |
| LOW | .github/workflows/dependency-review.yml | 21 | # with: |
| LOW | .github/workflows/resources/tpcds_run.scala | 1 | // Copyright 2015 Databricks |
| LOW | .github/workflows/resources/tpcds_datagen.scala | 1 | // Copyright 2015 Databricks |
| LOW | .github/scripts/cmptree.py | 1 | #!/usr/bin/env python |
| LOW | .github/scripts/fsrand.py | 1 | #!/usr/bin/env python |
| LOW | .github/scripts/setup-hdfs.sh | 1 | #!/bin/bash |
| LOW | .github/scripts/mutate/save_report.py | 1 | |
| LOW | .github/scripts/sync/sync_fsrand.sh | 181 | if [ $? -ne 0 ]; then |
| LOW | pkg/vfs/vfs.go | 1401 | // Linux ACL format: |
| LOW | pkg/fuse/device_darwin.go | 1 | // Copyright 2020 Chaos Mesh Authors. |
| LOW | pkg/fuse/device_linux.go | 1 | // Copyright 2020 Chaos Mesh Authors. |
| LOW | pkg/meta/base_test.go | 3721 | m.Remove(ctx, RootInode, "batchDst2", false, RmrDefaultThreads, nil) |
| LOW | pkg/meta/random_test.go | 1361 | // FIXME: The comparison of the truncate results requires compacting all slices, |
| LOW | pkg/meta/random_test.go | 1381 | t.Fatalf("expect %s but got %s", st2, st) |
| LOW | pkg/meta/interface.go | 421 | Access(ctx Context, inode Ino, modemask uint8, attr *Attr) syscall.Errno |
| LOW | pkg/meta/interface.go | 441 | Symlink(ctx Context, parent Ino, name string, path string, inode *Ino, attr *Attr) syscall.Errno |
| LOW | pkg/utils/logger.go | 1 | // Copyright 2015 Ka-Hing Cheung |
| LOW | pkg/fs/http.go | 301 | // http.Handle("/", h) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | .github/scripts/utils.py | 93 | print("Error: %s : %s" % (storage_dir, e.strerror)) |
| LOW | .github/scripts/hypo/common.py | 106 | except Exception as e: |
| MEDIUM | .github/scripts/hypo/fs_op.py | 906 | def do_change_groups(self, user, group, groups): |
| LOW | .github/scripts/hypo/fs_op.py | 578 | except Exception as e: |
| LOW | .github/scripts/hypo/fs_op.py | 594 | except Exception as e: |
| LOW | .github/scripts/hypo/fs_op.py | 616 | except Exception as e: |
| LOW | .github/scripts/hypo/fs_op.py | 635 | except Exception as e: |
| LOW | .github/scripts/hypo/fs_op.py | 693 | except Exception as e: |
| LOW | .github/scripts/hypo/fs_op.py | 716 | except Exception as e: |
| LOW | .github/scripts/hypo/fs_op.py | 736 | except Exception as e: |
| LOW | .github/scripts/hypo/fs_op.py | 758 | except Exception as e: |
| LOW | .github/scripts/hypo/fs_op.py | 785 | except Exception as e: |
| LOW | .github/scripts/hypo/fs_op.py | 803 | except Exception as e: |
| LOW | .github/scripts/hypo/fs_op.py | 820 | except Exception as e: |
| LOW | .github/scripts/hypo/fs_op.py | 838 | except Exception as e: |
| LOW | .github/scripts/hypo/fs_op.py | 854 | except Exception as e: |
| LOW | .github/scripts/hypo/fs_op.py | 881 | except Exception as e: |
| LOW | .github/scripts/hypo/fs_op.py | 898 | except Exception as e: |
| LOW | .github/scripts/hypo/fs_op.py | 925 | except Exception as e: |
| LOW | .github/scripts/hypo/fs_op.py | 937 | except Exception as e: |
| LOW | .github/scripts/hypo/fs_op.py | 987 | except Exception as e: |
| LOW | .github/scripts/hypo/fs_op.py | 1007 | except Exception as e: |
| LOW | .github/scripts/hypo/fs_op.py | 1022 | except Exception as e: |
| LOW | .github/scripts/hypo/fs_op.py | 1056 | except Exception as e: |
| LOW | .github/scripts/hypo/command_op.py | 291 | except Exception as e: |
| MEDIUM | .github/scripts/hypo/command_op.py | 154 | def do_status(self): |
| LOW | .github/scripts/perf/ai_format_benchmark.py | 125 | except Exception as e: |
| LOW | .github/scripts/perf/ai_format_benchmark.py | 965 | except Exception as e: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | sdk/python/juicefs/juicefs/juicefs.py | 38 | |
| LOW | sdk/python/juicefs/juicefs/juicefs.py | 202 | |
| LOW | sdk/python/juicefs/juicefs/juicefs.py | 441 | |
| LOW | .github/scripts/cmptree.py | 66 | |
| LOW | .github/scripts/fsrand.py | 138 | |
| LOW | .github/scripts/testVersionCompatible.py | 92 | |
| LOW | .github/scripts/testVersionCompatible.py | 171 | |
| LOW | .github/scripts/utils.py | 16 | |
| LOW | .github/scripts/utils.py | 84 | |
| LOW | .github/scripts/hypo/common.py | 40 | |
| LOW | .github/scripts/hypo/common.py | 122 | |
| LOW | .github/scripts/hypo/fs_op.py | 133 | |
| LOW | .github/scripts/hypo/fs_op.py | 162 | |
| LOW | .github/scripts/hypo/command_op.py | 38 | |
| LOW | .github/scripts/hypo/command_op.py | 91 | |
| LOW | .github/scripts/mutate/check_coverage.py | 22 | |
| LOW | .github/scripts/mutate/mutesting.py | 9 | |
| LOW | .github/scripts/mutate/parse_test_cases.py | 7 | |
| LOW | .github/scripts/perf/ai_format_benchmark.py | 399 | |
| LOW | .github/scripts/perf/ai_format_benchmark.py | 973 | |
| LOW | .github/scripts/perf/ai_format_benchmark.py | 1031 | |
| LOW | .github/scripts/perf/ai_format_benchmark.py | 1064 | |
| LOW | .github/scripts/perf/ai_format_benchmark.py | 975 | |
| LOW | .github/scripts/perf/ai_format_benchmark.py | 1037 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .github/scripts/testVersionCompatible.py | 486 | def write_rand_files_and_compare(self): |
| LOW | .github/scripts/testVersionCompatible.py | 764 | def greater_than_version_formatted(self, ver): |
| LOW | .github/scripts/testVersionCompatible.py | 770 | def greater_than_version_dumped(self, ver): |
| LOW | .github/scripts/testVersionCompatible.py | 775 | def greater_than_version_mounted(self, ver): |
| LOW | .github/scripts/wins_fs_test.py | 57 | def test_directory_operations(self): |
| LOW | .github/scripts/wins_fs_test.py | 73 | def test_concurrent_operations(self): |
| LOW | .github/scripts/hypo/s3_op.py | 444 | def do_unset_policy_from_user(self, policy_name, user_name, alias): |
| LOW | .github/scripts/hypo/s3_op.py | 453 | def do_unset_policy_from_group(self, policy_name, group_name, alias): |
| LOW | .github/scripts/hypo/fs_sdk_test.py | 292 | def test_rename_to_dir_not_exist(self): |
| LOW | .github/scripts/pysdk/pysdk_test.py | 92 | def test_chown_uid_gid_arguments_must_be_index(self): |
| LOW | .github/scripts/pysdk/pysdk_test.py | 230 | def test_directory_link_nonlocal(self): |
| LOW | .github/scripts/mutate/check_skip_by_comment.py | 6 | def is_mutation_skipped_by_comment(original_file, changed_file): |
| LOW | .github/scripts/perf/ai_format_benchmark.py | 350 | def benchmark_pytorch_weights(self): |
| LOW | .github/scripts/perf/ai_format_benchmark.py | 194 | def generate_random_image_bytes(self, width=64, height=64, format="JPEG", quality=85): |
| LOW | .github/scripts/perf/ai_format_benchmark.py | 227 | def read_lmdb_data_single_process(self, lmdb_path): |
| LOW | .github/scripts/perf/ai_format_benchmark.py | 258 | def read_lmdb_data_multi_process(self, lmdb_path, num_processes=2): |
| LOW | .github/scripts/perf/ai_format_benchmark.py | 544 | def benchmark_huggingface_bin(self): |
| LOW | .github/scripts/perf/ai_format_benchmark.py | 606 | def benchmark_tensorflow_checkpoint(self): |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | .github/scripts/perf/ai_format_benchmark.py | 346 | # ---------------------------------------------------------------------- |
| MEDIUM | .github/scripts/perf/ai_format_benchmark.py | 348 | # ---------------------------------------------------------------------- |
| MEDIUM | .github/scripts/perf/ai_format_benchmark.py | 697 | # ---------------------------------------------------------------------- |
| MEDIUM | .github/scripts/perf/ai_format_benchmark.py | 699 | # ---------------------------------------------------------------------- |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .github/scripts/compare_results.sh | 90 | # Check if any scenario has "worse" results |
| LOW | .github/scripts/cache.sh | 700 | # Check if total size exceeds max limit |
| LOW | .github/scripts/cache.sh | 712 | # Check if each directory is evenly distributed based on its weight |
| LOW | .github/scripts/start_meta_engine.sh | 56 | # Check if tiup playground process is still alive |
| LOW | .github/scripts/command/tier.sh | 768 | # Set files to different tiers |
| LOW | .github/scripts/command/tier.sh | 907 | # Set all to tier 1 recursively |
| LOW | .github/scripts/perf/compare_mdtest_fio.sh | 247 | # Check if any scenario has "worse" results |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | .github/scripts/perf/ai_format_benchmark.py | 1125 | # Run comprehensive benchmarks |
| MEDIUM | .github/scripts/perf/ai_format_benchmark.py | 937 | """Run comprehensive benchmarks with multiple file sizes""" |
| MEDIUM | .github/scripts/perf/ai_format_benchmark.py | 1032 | """Save results to JSON file with comprehensive report""" |