src/storage/blobfs/test/integration/large/short.cc
// Creates a new blob but (mostly) without complaining about failures.
Creates a new blob but (mostly) without complaining about failures.
Creates a new blob but ( mostly ) without complaining about failures .
void RelaxedMakeBlob(const BlobInfo* info, fbl::unique_fd* fd) {
  fd->reset(open(info->path, O_CREAT | O_RDWR));
  ASSERT_TRUE(*fd);
  if (ftruncate(fd->get(), info->size_data) < 0) {
    return;
  }
  StreamAll(write, fd->get(), info->data.get(), info->size_data);
}
void RelaxedMakeBlob ( const BlobInfo * info , fbl :: unique_fd * fd ) { fd -> reset ( open ( info -> path , O_CREAT | O_RDWR ) ) ; ASSERT_TRUE ( * fd ) ; if ( ftruncate ( fd -> get ( ) , info -> size_data ) < 0 ) { return ; } StreamAll ( write , fd -> get ( ) , info -> data . get ( ) , info -> size_data ) ; }
Creates a new blob but (mostly) without complaining about failures.
Creates a new blob but ( mostly ) without complaining about failures .