def _create_client_mount(self, host, filesystem, mountpoint):
# Used for intra-JobScheduler calls
log.debug("Creating client mount for %s as %s:%s" % (filesystem, host, mountpoint))
with self._lock:
from django.db import transaction
with transaction.commit_on_success():
mount, created = LustreClientMount.objects.get_or_create(
host = host,
filesystem = filesystem)
mount.mountpoint = mountpoint
mount.save()
ObjectCache.add(LustreClientMount, mount)
if created:
log.info("Created client mount: %s" % mount)
return mount
job_scheduler.py 文件源码
python
阅读 27
收藏 0
点赞 0
评论 0
评论列表
文章目录