[PATCH v2 2/2] Tools: hv: vssdaemon: skip all filesystems mounted readonly

KY Srinivasan kys at microsoft.com
Wed Nov 19 23:01:30 UTC 2014



> -----Original Message-----
> From: Vitaly Kuznetsov [mailto:vkuznets at redhat.com]
> Sent: Monday, November 10, 2014 8:37 AM
> To: KY Srinivasan; Haiyang Zhang; Greg Kroah-Hartman
> Cc: devel at linuxdriverproject.org; linux-kernel at vger.kernel.org; Dexuan Cui
> Subject: [PATCH v2 2/2] Tools: hv: vssdaemon: skip all filesystems mounted
> readonly
> 
> Instead of making a list of exceptions for readonly filesystems in addition to
> iso9660 we already have it is better to skip freeze operation for all readonly-
> mounted filesystems.
> 
> Signed-off-by: Vitaly Kuznetsov <vkuznets at redhat.com>
Signed-off-by: K. Y. Srinivasan <kys at microsoft.com>

> ---
>  tools/hv/hv_vss_daemon.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/hv/hv_vss_daemon.c b/tools/hv/hv_vss_daemon.c index
> ee44f0d..5e63f70 100644
> --- a/tools/hv/hv_vss_daemon.c
> +++ b/tools/hv/hv_vss_daemon.c
> @@ -102,7 +102,7 @@ static int vss_operate(int operation)
>  	while ((ent = getmntent(mounts))) {
>  		if (strncmp(ent->mnt_fsname, match, strlen(match)))
>  			continue;
> -		if (strcmp(ent->mnt_type, "iso9660") == 0)
> +		if (hasmntopt(ent, MNTOPT_RO) != NULL)
>  			continue;
>  		if (strcmp(ent->mnt_type, "vfat") == 0)
>  			continue;
> --
> 1.9.3



More information about the devel mailing list