Re: [PATCH 11/11] xfsprogs: Add a way to compile without blkid

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

 



On Mon, Aug 17, 2015 at 06:23:26PM +0200, Jan Tulak wrote:
> UPDATE: default to "signature found", so without blkid is
>         -f mandatory.

Belongs in the cover letter, not this patch.

>  		} else
>  			ft->psectorsize = ft->lsectorsize = BBSIZE;
>  	} else {
> +#ifdef ENABLE_BLKID
>  		blkid_get_topology(dfile, &ft->dsunit, &ft->dswidth,
>  				   &ft->lsectorsize, &ft->psectorsize,
>  				   force_overwrite);
> +#endif /* ENABLE_BLKID */
>  	}
>  
>  	if (xi->rtname && !xi->risfile) {
>  		int sunit, lsectorsize, psectorsize;
>  
> +#ifdef ENABLE_BLKID
>  		blkid_get_topology(xi->rtname, &sunit, &ft->rtswidth,
>  				   &lsectorsize, &psectorsize, force_overwrite);
> +#endif /* ENABLE_BLKID */

I think you need to proide a dummy blkid_get_topology which at least
sets the two sector sizes to 512.

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs



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

  Powered by Linux