I know that when free capacity for a brick is less than min-free-disk, create a link file. but, when all subvols’ free capacity are less than min-free-disk, just try to search the best subvol and do fops to the subvol. I think restriction is needed as option. so, i suggest that when all subvols’ free capacity are less than min-free-disk, reject fops for create and mknod (using min-free-disk). like below codes. (of course, needed to modify the function; dht_free_disk_available_subvol) avail_subvol = dht_free_disk_available_subvol (this, subvol, local); if (!avail_subvol) { gf_msg_debug (this->name, 0, "failed to create %s on %s", loc->path, subvol->name); DHT_STACK_UNWIND (mknod, frame, -1, ENOSPC, NULL, NULL, NULL, NULL, NULL); goto out; } else if (avail_subvol != subvol) { local->params = dict_ref (params); local->rdev = rdev; local->mode = mode; local->umask = umask; local->cached_subvol = avail_subvol; local->hashed_subvol = subvol; gf_msg_debug (this->name, 0, "creating %s on %s (link at %s)", loc->path, avail_subvol->name, subvol->name); dht_linkfile_create (frame, dht_mknod_linkfile_create_cbk, this, avail_subvol, subvol, loc); goto out; } - 이태화 드림 - ----------------------------------------- -----------------------------------------
|
_______________________________________________ Gluster-devel mailing list Gluster-devel@xxxxxxxxxxx http://lists.gluster.org/mailman/listinfo/gluster-devel