[Ocfs2-devel] [PATCH 6/6] Add online resize in tunefs.ocfs2, take 1

tao.ma tao.ma at oracle.com
Mon Nov 26 16:58:35 PST 2007


Roel Kluin wrote:
> Tao Ma wrote:
>   
>> +static errcode_t find_mount_point(char *device)
>> +{
>> +	int mount_flags = 0;
>> +	errcode_t ret;
>> +
>> +	memset(mnt_dir, 0, sizeof(mnt_dir));
>> +
>> +	ret = ocfs2_check_mount_point(device, &mount_flags,
>> +				      mnt_dir, sizeof(mnt_dir));
>> +	if (ret)
>> +		goto out;
>> +
>> +	if ((!mount_flags & OCFS2_MF_MOUNTED) ||
>>     
>
> if(!(mount_flags & OCFS2_MF_MOUNTED) ||
>   
Thanks for pointing it out.
>   
>> +	    (mount_flags & OCFS2_MF_READONLY) ||
>> +	    (mount_flags & OCFS2_MF_SWAP)) {
>> +		ret = OCFS2_ET_BAD_DEVICE_NAME;
>> +		goto out;
>> +	}
>> +
>> +	ret = 0;
>> +out:
>> +	return ret;
>> +}
>>     




More information about the Ocfs2-devel mailing list