private void setDiskAttributes(BucketAttributesFactory factory) {
    factory.setDiskSynchronous(partitionedRegion.getAttributes().isDiskSynchronous());
    factory.setDiskStoreName(partitionedRegion.getAttributes().getDiskStoreName());
  }
This method creates bucket regions, based on redundancy level. If redundancy level is: a) = 1
it creates a local region b) >1 it creates a distributed region

@return @throws CacheException
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegionDataStore.java