linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Device names
@ 2012-06-19  0:29 H. Peter Anvin
  2012-06-19 23:51 ` Chris Mason
  0 siblings, 1 reply; 5+ messages in thread
From: H. Peter Anvin @ 2012-06-19  0:29 UTC (permalink / raw)
  To: linux-btrfs

I just found out that all the device handling in btrfs is based on
pathnames, but shorter pathnames (1024) that PATH_MAX (4096).

This is confusing, and concerning for multiple reasons:

1. pathnames are namespace-specific; what is a pathname in one namespace
might not be in another.
2. different truncation rules in the rest of the kernel.

There seem to be no way one can do the equivalent of BTRFS_IOC_DEV_INFO
but actually get a device number or other stable information for that
device (that could be compared to a file descriptor for verification);
is that an accurate observation?

	-hpa

-- 
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-06-20 17:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-19  0:29 Device names H. Peter Anvin
2012-06-19 23:51 ` Chris Mason
2012-06-20  0:00   ` H. Peter Anvin
2012-06-20 13:37     ` Chris Mason
2012-06-20 17:06       ` Goffredo Baroncelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).