Re: [PATCH v2 2/4] btrfs-progs: Check fstype in find_mount_root()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 23, 2014 at 01:47:35PM +0800, Qu Wenruo wrote:
> --- a/utils.c
> +++ b/utils.c
> @@ -2390,6 +2390,9 @@ int lookup_ino_rootid(int fd, u64 *rootid)
>  	return 0;
>  }
>  
> +/* return 0 if a btrfs mount point if found
> + * return 1 if a mount point is found but not btrfs
> + * return <0 if something goes wrong */
>  int find_mount_root(const char *path, char **mount_root)
>  {
>  	FILE *mnttab;
> @@ -2397,6 +2400,7 @@ int find_mount_root(const char *path, char **mount_root)
>  	struct mntent *ent;
>  	int len;
>  	int ret;
> +	int not_btrfs;

    [CC]     utils.o
utils.c: In function ‘find_mount_root’:
utils.c:2342:6: warning: ‘not_btrfs’ may be used uninitialized in this function

I've initialized to 1 to fix it, no need to resend the patch.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux