All of lore.kernel.org
 help / color / mirror / Atom feed
From: tao.ma <tao.ma@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH 6/6] Add online resize in tunefs.ocfs2, take 1
Date: Mon Nov 26 16:59:56 2007	[thread overview]
Message-ID: <474B6BBB.40401@oracle.com> (raw)
In-Reply-To: <474B50C6.7080904@tiscali.nl>

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;
>> +}
>>     

  reply	other threads:[~2007-11-26 16:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-16  0:42 [Ocfs2-devel] [PATCH 0/6] Add online resize for ocfs2-tools,take 1 Tao Ma
2007-11-16  0:50 ` [Ocfs2-devel] [PATCH 1/6] Move resize function out of tunefs.c, take 1 Tao Ma
2007-11-16  0:50 ` [Ocfs2-devel] [PATCH 2/6] Abstract some specific process in resize to some individual function,take 1 Tao Ma
2007-11-16  0:50 ` [Ocfs2-devel] [PATCH 3/6] Abstract checking and validating process in tunefs.ocfs2,take 1 Tao Ma
2007-11-16  0:50 ` [Ocfs2-devel] [PATCH 4/6] Modfiy cl_cpg in global_bitmap to be maximum value during mkfs,take 1 Tao Ma
2007-11-16  0:52 ` [Ocfs2-devel] [PATCH 5/6] Modify fsck to trust global bitmap than super block,take 1 Tao Ma
2007-11-16  0:52 ` [Ocfs2-devel] [PATCH 6/6] Add online resize in tunefs.ocfs2,take 1 Tao Ma
2007-11-26 15:06   ` [Ocfs2-devel] [PATCH 6/6] Add online resize in tunefs.ocfs2, take 1 Roel Kluin
2007-11-26 16:59     ` tao.ma [this message]
2007-11-27  0:18   ` [Ocfs2-devel] [PATCH 6/6] Add online resize support in tunefs.ocfs2, take 2 Tao Ma

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=474B6BBB.40401@oracle.com \
    --to=tao.ma@oracle.com \
    --cc=ocfs2-devel@oss.oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.