Re: [PATCH] nilfs-utils: mkfs.nilfs2 should check presence of NILFS2 volume on device

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

 



Hi Martin,

On Mar 24, 2013, at 5:43 PM, Martin Steigerwald wrote:
[snip]

>> 
> 
> mkfs.xfs was the first and to my knowledge long time the only mkfs which 
> checked for existing filesystems. And it does so via blkid (at least 
> meanwhile, I think it used different means initially). This way it detects 
> all current Linux filesystems without duplicating the detection code. blkid 
> also detects nilfs:
> 
> merkaba:~> mkfs.nilfs2 -L test /dev/merkaba/zeit
> mkfs.nilfs2 (nilfs-utils 2.1.4)
> Start writing file system initial data to the device
>       Blocksize:4096  Device:/dev/merkaba/zeit  Device Size:21474836480
> File system initialization succeeded !! 
> merkaba:~> blkid /dev/merkaba/zeit
> /dev/merkaba/zeit: LABEL="test" UUID="3a105634-638e-4288-8f39-0e5324361431" 
> TYPE="nilfs2" 
> 
> On some occasion the thought came up that it would be good to have a similar 
> behavior in mkfs.btrfs. And mkfs.btrfs basically got a similar 
> implementation provided by Eric Sandeen. I digged it out, neither 
> ixquick.com nor Google found it out of the box and gmane search also didn´t 
> yield a result. Thus manually browsed:
> 
> http://www.mail-archive.com/linux-btrfs@xxxxxxxxxxxxxxx/msg22216.html
> 

Thank you for detailed explanation and for the link.

Yes, using of libblkid is an excellent suggestion. As I see, it exists an example for mkfs utilities in libblkid library. So, I'll do it in the way that you suggest.

Thanks,
Vyacheslav Dubeyko.

> Ciao
> -- 
> Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
> GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7

--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" 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 BTRFS]     [Linux CIFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux