Bug 773057

Summary: nautilus properties tab shows ext3/ext4 even if partition is ext2
Product: Red Hat Enterprise Linux 6 Reporter: Vladimir Benes <vbenes>
Component: nautilusAssignee: Alexander Larsson <alexl>
Status: CLOSED NEXTRELEASE QA Contact: Desktop QE <desktop-qa-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.3CC: tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-03 11:43:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Vladimir Benes 2012-01-10 19:24:05 UTC
Description of problem:
when partition formatted to ext2 nautilus properties tab shows ext2
udisks --show-info /dev/sde2 |grep type
  type:                        ext2
    type:                      0x83

Version-Release number of selected component (if applicable):
nautilus-2.28.4-18.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1.format partition as ext2 
2.mount it via nautilus
3.right click and properties
  
Actual results:
ext3/ext4 type shown

Expected results:
should be ext2

Additional info:

Comment 1 Vladimir Benes 2012-02-06 14:15:43 UTC
(In reply to comment #0)
> Description of problem:
> when partition formatted to ext2 nautilus properties tab shows ext2

ah..this should be tab shows ext3/ext4

Comment 2 Tomáš Bžatek 2012-02-06 14:45:46 UTC
So, found this related commit: http://git.gnome.org/browse/glib/commit/gio/glocalfile.c?id=25ff8ee7486c7bdf1612d3554fc1d7d91daedfa6

And tested myself: created an empty file, called mke2fs on it, and got this output:

> $ tune2fs -l test.bin 
> tune2fs 1.42 (29-Nov-2011)
> ...
> Filesystem magic number:  0xEF53
> Filesystem revision #:    1 (dynamic)
> Filesystem features:      ext_attr resize_inode dir_index filetype sparse_super
> ...

So there's no journal and plain mount command autodetects ext2. But it looks like the filesystem is indeed ext3 without journalling (ext2 mode?). Pure ext2 filesystem should have the 0xEF51 magic number. Could you please check on your side?

(In reply to comment #0)
> Description of problem:
> when partition formatted to ext2 nautilus properties tab shows ext2
> udisks --show-info /dev/sde2 |grep type
>   type:                        ext2
>     type:                      0x83

This is just a partition type. And udisks is not used for file:// URI scheme.

And that's probably the culprit here - we show filesystem type information based on physical filesystem data, not showing the actual mode the fs is mounted as. As long as other filesystems use different magic numbers for their versions, this is only the case for ext{2,3,4,5?}.

> $ mount
> /tmp/test.bin on /tmp/te type ext2 (rw,relatime,errors=continue,user_xattr,acl)

> $ gvfs-info -f file:///tmp/te
>   filesystem::type: ext3/ext4
Could you also please output of this command?

Comment 3 RHEL Program Management 2012-05-03 05:14:34 UTC
Since RHEL 6.3 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 5 RHEL Program Management 2013-10-14 00:51:00 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.