| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Change-Id: I46fc2feffe6443af6913785d67bf310838532421
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
def is_layout_complete(mnode, volname):
"""This function reads the subvols in the given volume and checks
whether layout is complete or not.
Layout starts at zero,
ends at 32-bits high,
and has no holes or overlaps
Args:
volname (str): volume name
mnode (str): Node on which cmd has to be executed.
Returns (bool): True if layout is complete
False if layout has any holes or overlaps
Example:
is_layout_complete("abc.xyz.com", "testvol")
"""
Change-Id: I46b20bf71c0dd3ac7d2dd393fa209744c4eebb3c
Signed-off-by: Prasad Desala <tdesala@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Added functions to search for a hashed/nonhashed subvol for a file/dir.
Adding function find_new_hashed. This is written for rename case so
that the new name will hash to a different subvol than that of the
the old name.
Change-Id: I8dc0b40ab517071096b704966e680c61d8bcc516
Signed-off-by: Susant Palai <spalai@redhat.com>
|
|
* glusterfile.py - helper for gluster client and backend files.
* glusterdir.py - helper for gluster client and backend dirs.
* brickdir.py - helper for collection and hashing of brickdirs (from pathinfo data).
* layout.py - base class for simple DHT layout validation.
* dht_test_util.py - utility module to walk a directory tree and run tests against files.
* constants.py - definitions for constants used in DHT libraries.
* exceptions.py - definitions for exceptions raised in DHT libraries.
Change-Id: I44770a822e0ec79561b3aa048e555320f622116a
Signed-off-by: Jonathan Holloway <jholloway@redhat.com>
|