mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-23 09:18:55 +00:00
03d84a07d1
nautilus does this when you drag and drop to overwrite a file: 1) create .goutputstream-XXXXXX to write to 2) fsync the fd for .goutputstream-XXXXXX 3) rename .goutputstream-XXXXXX to target file 4) close the fd for .goutputstream-XXXXXX previously, doing this on s3fs would result in an empty target file because after the rename, s3fs would not flush the content of .goutputstream-XXXXXX to target file. this change moves the FdEntity from the old path to the new path whenever rename happens. On flush s3fs would now flush the correct content to the rename target.
19 lines
390 B
Bash
Executable File
19 lines
390 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
# Require root
|
|
REQUIRE_ROOT=require-root.sh
|
|
#source $REQUIRE_ROOT
|
|
|
|
# Mount the bucket
|
|
if [ ! -d $TEST_BUCKET_MOUNT_POINT_1 ]
|
|
then
|
|
mkdir -p $TEST_BUCKET_MOUNT_POINT_1
|
|
fi
|
|
$S3FS $TEST_BUCKET_1 $TEST_BUCKET_MOUNT_POINT_1 -o passwd_file=$S3FS_CREDENTIALS_FILE
|
|
|
|
./integration-test-main.sh $TEST_BUCKET_MOUNT_POINT_1
|
|
|
|
umount $TEST_BUCKET_MOUNT_POINT_1
|
|
|
|
echo "All tests complete."
|