All of lore.kernel.org
 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; 7+ 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] 7+ messages in thread
* device names
@ 2003-10-19 18:30 James Courtier-Dutton
  2003-10-20  9:08 ` Clemens Ladisch
  0 siblings, 1 reply; 7+ messages in thread
From: James Courtier-Dutton @ 2003-10-19 18:30 UTC (permalink / raw)
  To: alsa-devel

I have 2 sound cards.
To output to front speakers of card0 I can do: -
front
or
front:0

For Card1
front:1

But for iec958 on Card1 if fails.
What name should I use for Card1 for IEC958 spdif digital out?

conf.c: parse_args() Parameter AES3 must be an integer.
conf.c: snd_config_expand() Parse arguments error: Invalid argument.
pcm.c: snd_pcm_open_noupdate() Unknown PCM 
iec958:AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2:1.
audio_alsa_out: snd_pcm_open() of 
iec958:AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2:1 failed: Invalid argument
audio_alsa_out: >>> check if another program don't already use PCM <<<

Cheers
James



-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office; & in the Server Room 
http://www.enterpriselinuxforum.com

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

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

Thread overview: 7+ 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
  -- strict thread matches above, loose matches on Subject: below --
2003-10-19 18:30 device names James Courtier-Dutton
2003-10-20  9:08 ` Clemens Ladisch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.