Re: [PATCH RFC] Add FAT_IOCTL_GET_VOLUME_ID

From: OGAWA Hirofumi
Date: Mon Jul 01 2013 - 07:43:50 EST


dmitry pervushin <dpervushin@xxxxxxxxx> writes:

> Honestly, I do not understand why getting volume id might be the
> function of the mounted filesystem. I'd rather think about generic
> function "filesystem id" of the block device.

I see. Yes, I have same question too.

> But if we decided to implement getting volume id from the filesystem,
> then getting it from the root of the filesystem (but not from any
> subdirectory of it and even not from files) makes sense for me.

Hm, finding the mount point and open fd (for only this) would be
inconvenient, and need some costs. Especially, if user is using the
bind mount.

Thanks.
--
OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/