def METHOD_NAME(args):
    url = args['url']
    account = args['account']
    username = args['username']
    key = args['key']
    container = args['container']
    ldir = args['ldir']
    lfilename = args['lfilename']
    isISCSI = args['isISCSI']
    segment = 0
    storagepolicy = None
    if "storagepolicy" in args:
        storagepolicy = args["storagepolicy"]
    logging.debug("#### CLOUD upload begin    %s/%s to swift ####", container, lfilename)
    timestamp_begin = datetime.datetime.now()
    savedpath = os.getcwd()
    os.chdir(ldir)
    try :
        if isISCSI == 'true':
            cmd1 = [ lvchange , "-ay", lfilename ]
            util.pread2(cmd1)
            cmd1 = [ lvdisplay, "-c", lfilename ]
            lines = util.pread2(cmd).split(':');
            size = long(lines[6]) * 512
            if size > MAX_SEG_SIZE :
                segment = 1
        else :
            size = os.path.getsize(lfilename)
            if size > MAX_SEG_SIZE :
                segment = 1
        if segment :
            cmd = [SWIFT, "-A", url, "-U", account + ":" + username, "-K", key, "upload", "-S", str(MAX_SEG_SIZE), container, lfilename]
        else :
            cmd = [SWIFT, "-A", url ,"-U", account + ":" + username, "-K", key, "upload", container, lfilename]
        if storagepolicy is not None:
            cmd.append("--storage-policy")
            cmd.append(storagepolicy)
        util.pread2(cmd)
        cmd2 = [SWIFT, "-A", url ,"-U", account + ":" + username, "-K", key, "stat", container, lfilename]
        upload_stat = util.pread2(cmd2)
        upload_stat = [line for line in upload_stat.split('\n') if "Content Length" in line]
        upload_stat = upload_stat[0].split(': ')[1]
        upload_diff = size - long(upload_stat)
        if upload_diff != 0:
            logging.error("#### CLOUD upload file size diff: %s", upload_diff)
        timestamp_end = datetime.datetime.now()
        timestamp_delta = timestamp_end - timestamp_begin
        rate = (size / 1024 / 1024) / timestamp_delta.seconds
        logging.debug("#### CLOUD upload complete %s/%s to swift: %s @ %s MB/s ####", container, lfilename, str(timestamp_delta)[:7], rate)
        return 'true'
    finally:
        os.chdir(savedpath)
    return 'false'