From dfba4ff397383bbe45c91b80a86493a062cdb864 Mon Sep 17 00:00:00 2001 From: Bala FA Date: Wed, 6 Apr 2016 08:26:19 +0530 Subject: [PATCH] doc: add multipart documentation about staging files --- Multipart.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Multipart.md diff --git a/Multipart.md b/Multipart.md new file mode 100644 index 000000000..ce13090c9 --- /dev/null +++ b/Multipart.md @@ -0,0 +1,10 @@ +## Multipart backend format + +When multipart upload is used for objects, below meta-data/staging files are created + +- New multipart upload call creates file ```EXPORT_DIR/.minio/BUCKET/PATH/TO/OBJECT/UPLOAD_ID.uploadid``` +- Put object part call creates file ```EXPORT_DIR/.minio/BUCKET/PATH/TO/OBJECT/UPLOAD_ID.PART_NUMBER.MD5SUM_STRING``` +- Abort multipart call removes all files matching ```EXPORT_DIR/.minio/BUCKET/PATH/TO/OBJECT/UPLOAD_ID.*``` +- Complete multipart call does + 1. Create a staging file ```EXPORT_DIR/.minio/BUCKET/PATH/TO/OBJECT/UPLOAD_ID.complete.TEMP_NAME``` then rename to ```EXPORT_DIR/.minio/BUCKET/PATH/TO/OBJECT/UPLOAD_ID.complete``` + 2. Rename staging file ```EXPORT_DIR/.minio/BUCKET/PATH/TO/OBJECT/UPLOAD_ID.complete``` to ```EXPORT_DIR/BUCKET/PATH/TO/OBJECT```