ok, thanks for reply.

1 - To store the Blobs I am using it:

private BlobStore mStore;
mStore = mContext.getBlobStore();
if (!mStore.containerExists(mContainerName)) {
  Location locToSet = null;
  for (Location loc : mStore.listAssignableLocations()) {
  if (loc.getId().equals("eu-west-1")) {
  locToSet = loc;
  break;
  }
  }
  mStore.createContainerInLocation(locToSet, mContainerName);
}

Blob blob = mStore.blobBuilder(Integer.toString(mBucketIndex)).build();
blob.setPayload(data);
mStore.putBlob(mContainerName, blob);

2 - I use this implementation of iSCSI http://jscsi.org/. And it is this
class that saves my blobs
http://grepcode.com/file/repo1.maven.org/maven2/org.jscsi/target/2.5.2/org/jscsi/target/storage/JCloudsStorageModule.java?av=f

3 - I do not know how to create a small test case. What it should have?

4 - Format means I have a disk that I can partition it and format.

5 - The indexes are the blobs that indicates there are some files on my
driver, but not really the file content.

Hope this answer.



On Mon, Aug 11, 2014 at 9:33 PM, Andrew Gaul <[email protected]> wrote:

> On Mon, Aug 11, 2014 at 05:08:16PM -0300, felipe gutierrez wrote:
> > I am new with jclouds. What I am doing is: Opening a disk with java and
> > formatting it with jclouds. So, instead of write Files.write() I use
> > jclouds.
> >
> > When I format I can see about 63 blocks of 2MB. The blocks next to it,
> say
> > the 30 neighbors, are the indexes of my files copied to the disk. It is
> so
> > true that if I save 100 files for example, I can keep these blocks and
> move
> > the another blocks to my cloud and I can still open the disk and see all
> > files inside. Only see, of course. If I tried to open I need to move back
> > the exactly blocks of that file I want to open.
> >
> > My question: When I copied 50GB of movies I still can see all movies on
> my
> > disk. When I open the movie I need to restore all blocks. It is what my
> app
> > does. But I got a claim saying the index of the movie are not integrate.
> I
> > still can see the size of the movie is 800MB, but when I open it says
> only
> > 20 minutes of movie. So I would like to restore all the blocks of that
> > movie, not only what my app is asking to read.
>
> Can you explain how you open a disk and what it means to format it with
> jclouds?  Also what does an index mean?  The jclouds filesystem provider
> does not provide any indexing; the underlying operating system provides
> this.
>
> --
> Andrew Gaul
> http://gaul.org/
>

Reply via email to