Skip to contentSkip to conversation

libblkid: ID_FS_VERSION

DISCUSSION Pali Rohár 2 participants 5 messages Jul 5, 2017 – Jul 10, 2017 Util-Linux package

lore
Share & tools
lore
#0 lore raw

Hi! What is the meaning of the ID_FS_VERSION attribute? I'm trying to find documentation about libblkid attributes, but seems there is none.

Signature · 2 lines
Pali Rohár
[email protected]
maintainer
#1 lore raw
Quoted 2 lines · Pali Rohár

Hi! What is the meaning of the ID_FS_VERSION attribute? I'm trying to find documentation about libblkid attributes, but seems there is none.

libblkid/src/superblocks/superblocks.c

* @VERSION: filesystem version

:-)

Well, the field is to provide more details about the filesystem, for example we have VERSION="FAT16" TYPE="vfat", and so on. Note that TYPE is usually name used by kernel (to be usable for "mount -t <type>").

I guess the VERSION is used by some userspace stuff (udisks?) to get more information (or provide more details to end-users). It's probably nothing critical.

Karel

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com
#2 lore raw
Quoted 9 lines · On Monday 10 July 2017 13:08:28 Karel Zak wrote:
Quoted 2 lines · Pali Rohár

Hi! What is the meaning of the ID_FS_VERSION attribute? I'm trying to find documentation about libblkid attributes, but seems there is none.

libblkid/src/superblocks/superblocks.c

* @VERSION: filesystem version

:-)

That does not provide more information :-)

Quoted 7 lines

Well, the field is to provide more details about the filesystem, for example we have VERSION="FAT16" TYPE="vfat", and so on. Note that TYPE is usually name used by kernel (to be usable for "mount -t <type>").

I guess the VERSION is used by some userspace stuff (udisks?) to get more information (or provide more details to end-users). It's probably nothing critical.

I'm thinking if we can provide UDF revision/version of UDF filesystem to userspace and looks like ID_FS_VERSION is good candidate for it...

What do you think?

E.g. Linux kernel is able to read UDF filesystem up to revision 2.50 and has read-write support up to revision 2.01. So for userspace this information can be useful.

Signature · 2 lines
Pali Rohár
[email protected]
maintainer
#3 lore raw
Quoted 17 lines · Pali Rohár
Quoted 9 lines · On Monday 10 July 2017 13:08:28 Karel Zak wrote:
Quoted 2 lines · Pali Rohár

Hi! What is the meaning of the ID_FS_VERSION attribute? I'm trying to find documentation about libblkid attributes, but seems there is none.

libblkid/src/superblocks/superblocks.c

* @VERSION: filesystem version

:-)

That does not provide more information :-)

Quoted 4 lines

Well, the field is to provide more details about the filesystem, for example we have VERSION="FAT16" TYPE="vfat", and so on. Note that TYPE is usually name used by kernel (to be usable for "mount -t <type>").

Quoted 8 lines
Quoted 3 lines

I guess the VERSION is used by some userspace stuff (udisks?) to get more information (or provide more details to end-users). It's probably nothing critical.

I'm thinking if we can provide UDF revision/version of UDF filesystem to userspace and looks like ID_FS_VERSION is good candidate for it...

What do you think?

It seems blkid_probe_set_version() is nowhere used for UD now, so we have absolute freedom to use it in some way.

Quoted 3 lines

E.g. Linux kernel is able to read UDF filesystem up to revision 2.50 and has read-write support up to revision 2.01. So for userspace this information can be useful.

Yes, sounds good.

Karel

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com
#4 lore raw
Quoted 33 lines · On Monday 10 July 2017 13:52:36 Karel Zak wrote:
Quoted 23 lines · Pali Rohár
Quoted 10 lines · On Monday 10 July 2017 13:08:28 Karel Zak wrote:
Quoted 3 lines · Pali Rohár

Hi! What is the meaning of the ID_FS_VERSION attribute? I'm trying to find documentation about libblkid attributes, but seems there is none.

libblkid/src/superblocks/superblocks.c

* @VERSION: filesystem version
:
:-)

That does not provide more information :-)

Quoted 8 lines

Well, the field is to provide more details about the filesystem, for example we have VERSION="FAT16" TYPE="vfat", and so on. Note that TYPE is usually name used by kernel (to be usable for "mount -t <type>").

I guess the VERSION is used by some userspace stuff (udisks?) to get more information (or provide more details to end-users). It's probably nothing critical.

Quoted 5 lines

I'm thinking if we can provide UDF revision/version of UDF filesystem to userspace and looks like ID_FS_VERSION is good candidate for it...

What do you think?

It seems blkid_probe_set_version() is nowhere used for UD now, so we have absolute freedom to use it in some way.

Quoted 7 lines
Quoted 3 lines

E.g. Linux kernel is able to read UDF filesystem up to revision 2.50 and has read-write support up to revision 2.01. So for userspace this information can be useful.

Yes, sounds good.

Karel

https://github.com/karelzak/util-linux/pull/483

Signature · 2 lines
Pali Rohár
[email protected]