pradeepgn / s3fs

Automatically exported from code.google.com/p/s3fs
GNU General Public License v2.0
0 stars 0 forks source link

Utility mode #158

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
s3fs could benefit from a "utility mode" - this would allow operations on 
buckets as well as objects and provide information as well

Examples of its usage are:

   - list all buckets
   - creation of a new bucket
   - list in progress multipart uploads (important if you want to remove the data associated with a failed multipart upload)
   - abort multipart upload
   - get bucket location
   - put bucket policy 
   - ...

A while back, I added the "-u" option, the only thing that this does at this 
point in time is to list multipart uploads  (and I do have some failed ones 
which are occupying S3 space and $$$)

My initial thought on this new feature is to implement a simple text-based 
menu-driven interface. Running s3fs with the -u option puts you into this mode.

Original issue reported on code.google.com by dmoore4...@gmail.com on 12 Feb 2011 at 4:05

GoogleCodeExporter commented 8 years ago
I would _definitely_ benefit from something like this, though IMHO I think it 
should be separated from the s3fs binary a la the Unix philosophy, "Write 
programs that do one thing and do it well." It's a good argument for splitting 
s3 operations into a single library we could share between s3fs and "s3fs-util".

Just my 2¢

Original comment by ben.lema...@gmail.com on 17 Feb 2011 at 9:15

GoogleCodeExporter commented 8 years ago
I do agree (a separate utility). But like you said, things would need to be 
split up to share the routines. I started down the refactoring path at one 
point in time and it became a mess and I decided to spend my time on bug fixes 
and improvements rather than unraveling the whole thing.  (I think that Adrian 
started down this path at one point in time as well).

Right now I have a bucket with debris from a multipart upload gone bad and am 
in need of the abort function to clean up the debris -- that's why the idea of 
this came up. If you have ever run the -u option, it may report the trash. BTW, 
amazon still charges for storage space on unfinished, non-aborted multipart 
uploads.

Original comment by dmoore4...@gmail.com on 26 Feb 2011 at 6:51