Re: Device ID issue on btrfs

2017-02-16 Thread Jeff Mahoney
On 2/16/17 1:23 PM, Goffredo Baroncelli wrote:
> On 2017-02-16 14:00, Ilan Schwarts wrote:
>> Hi,
>> Found the solution at: https://patchwork.kernel.org/patch/2825842/
> 
> The patches below provided by suse seem more general
> 
>   
> http://kernel.opensuse.org/cgit/kernel-source/tree/patches.suse/vfs-add-super_operations-get_inode_dev
>   
> http://kernel.opensuse.org/cgit/kernel-source/tree/patches.suse/btrfs-provide-super_operations-get_inode_dev
> 
> Unfortunately is quite invasive

They're also incomplete.  The openSUSE kernel also needs:
http://kernel.suse.com/cgit/kernel-source/tree/patches.suse/btrfs-fs-super.c-add-new-super-block-devices-super_block_d.patch?h=SLE12-SP2
http://kernel.suse.com/cgit/kernel-source/tree/patches.suse/btrfs-btrfs-use-the-new-VFS-super_block_dev.patch?h=SLE12-SP2

... for ustat() to work properly.  I've just forward ported those to the
master kernel and am testing now.

The /proc/mountinfo thing isn't fixed with these patches either since
subvolumes report different device numbers and we don't represent
subvolumes as mounts.  That's what the patches that I had started
writing up a while ago do, but it's still very early for those.

-Jeff

>>
>> On Thu, Feb 16, 2017 at 12:05 PM, Ilan Schwarts > > wrote:
>>
>> Hi,
>>
>> I hope its ok im reaching to you via mail..
>> I read your message at: 
>> _https://marc.info/?l=linux-btrfs=148701370108477=2 
>> _
>>
>> I have the same issue in my kernel driver, Did you find an answer ?
>>
>> Thanks
>> -
>> Ilan Schwarts
>>
>>
>>
>>
>> -- 
>>
>>
>> -
>> Ilan Schwarts
> 
> 


-- 
Jeff Mahoney
SUSE Labs



signature.asc
Description: OpenPGP digital signature


Re: Device ID issue on btrfs

2017-02-16 Thread Goffredo Baroncelli
On 2017-02-16 14:00, Ilan Schwarts wrote:
> Hi,
> Found the solution at: https://patchwork.kernel.org/patch/2825842/

The patches below provided by suse seem more general


http://kernel.opensuse.org/cgit/kernel-source/tree/patches.suse/vfs-add-super_operations-get_inode_dev

http://kernel.opensuse.org/cgit/kernel-source/tree/patches.suse/btrfs-provide-super_operations-get_inode_dev

Unfortunately is quite invasive

> 
> On Thu, Feb 16, 2017 at 12:05 PM, Ilan Schwarts  > wrote:
> 
> Hi,
> 
> I hope its ok im reaching to you via mail..
> I read your message at: 
> _https://marc.info/?l=linux-btrfs=148701370108477=2 
> _
> 
> I have the same issue in my kernel driver, Did you find an answer ?
> 
> Thanks
> -
> Ilan Schwarts
> 
> 
> 
> 
> -- 
> 
> 
> -
> Ilan Schwarts


-- 
gpg @keyserver.linux.it: Goffredo Baroncelli 
Key fingerprint BBF5 1610 0B64 DAC6 5F7D  17B2 0EDA 9B37 8B82 E0B5
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html