All of lore.kernel.org
 help / color / mirror / Atom feed
* Proposal: expose vol_id utility
@ 2007-05-18  8:57 Hai Zaar
  2007-05-18  9:40 ` Marco d'Itri
  2007-05-18 16:08 ` Kay Sievers
  0 siblings, 2 replies; 3+ messages in thread
From: Hai Zaar @ 2007-05-18  8:57 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 229 bytes --]

Once upon a time vol_id was installed in /sbin. Now it goes to
/lib/udev/, but I'm already using it my various scripts. So I suggest
exposing it to /sbin again in the same manner as you do with scsi_id.
Attached patch.

-- 
Zaar

[-- Attachment #2: udev-1.1.1-expose-vol_id.patch --]
[-- Type: application/octet-stream, Size: 472 bytes --]

Exposes vol_id utility (to make it available in standard path).

Author: Hai Zaar <haizaar@gmail.com>

--- udev-1.1.1/extras/volume_id/Makefile.orig	2007-05-18 11:44:51.268767693 +0300
+++ udev-1.1.1/extras/volume_id/Makefile	2007-05-18 11:45:07.909018707 +0300
@@ -61,6 +61,7 @@
 
 install-bin: all
 	$(INSTALL_PROGRAM) -D $(PROG) $(DESTDIR)$(libudevdir)/$(PROG)
+	ln -sf $(libudevdir)/$(PROG) $(DESTDIR)$(sbindir)/$(PROG)
 	$(MAKE) -C lib install
 .PHONY: install-bin
 

[-- Attachment #3: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

[-- Attachment #4: Type: text/plain, Size: 226 bytes --]

_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

* Re: Proposal: expose vol_id utility
  2007-05-18  8:57 Proposal: expose vol_id utility Hai Zaar
@ 2007-05-18  9:40 ` Marco d'Itri
  2007-05-18 16:08 ` Kay Sievers
  1 sibling, 0 replies; 3+ messages in thread
From: Marco d'Itri @ 2007-05-18  9:40 UTC (permalink / raw)
  To: linux-hotplug

On May 18, Hai Zaar <haizaar@gmail.com> wrote:

> Once upon a time vol_id was installed in /sbin. Now it goes to
> /lib/udev/, but I'm already using it my various scripts. So I suggest
> exposing it to /sbin again in the same manner as you do with scsi_id.
> Attached patch.
If you are using only in scripts and not from the command line then
there is no need to have it in the $PATH.

-- 
ciao,
Marco

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

* Re: Proposal: expose vol_id utility
  2007-05-18  8:57 Proposal: expose vol_id utility Hai Zaar
  2007-05-18  9:40 ` Marco d'Itri
@ 2007-05-18 16:08 ` Kay Sievers
  1 sibling, 0 replies; 3+ messages in thread
From: Kay Sievers @ 2007-05-18 16:08 UTC (permalink / raw)
  To: linux-hotplug

On 5/18/07, Marco d'Itri <md@linux.it> wrote:
> On May 18, Hai Zaar <haizaar@gmail.com> wrote:
>
> > Once upon a time vol_id was installed in /sbin. Now it goes to
> > /lib/udev/, but I'm already using it my various scripts. So I suggest
> > exposing it to /sbin again in the same manner as you do with scsi_id.
> > Attached patch.
> If you are using only in scripts and not from the command line then
> there is no need to have it in the $PATH.

You can also use the udev database, which stores the output of all the
other id-programs too:
  $ udevinfo --query=env --name=sda6
  ID_VENDOR=ATA
  ID_MODEL=ST910021AS
  ID_REVISION=4.06
  ID_SERIAL=SATA_ST910021AS_3MH0Y3KF
  ID_SERIAL_SHORT=3MH0Y3KF
  ID_TYPE=disk
  ID_BUS=scsi
  ID_ATA_COMPAT=ST910021AS_3MH0Y3KF
  ID_PATH=pci-0000:00:1f.2-scsi-0:0:0:0
  ID_EDD=int13_dev80
  ID_FS_USAGE=filesystem
  ID_FS_TYPE=ext3
  ID_FS_VERSION=1.0
  ID_FS_UUID}651232-f193-46db-a917-d131c4d61201
  ID_FS_UUID_ENC}651232-f193-46db-a917-d131c4d61201
  ID_FS_LABEL=work
  ID_FS_LABEL_ENC=work
  ID_FS_LABEL_SAFE=work

Kay

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

end of thread, other threads:[~2007-05-18 16:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-18  8:57 Proposal: expose vol_id utility Hai Zaar
2007-05-18  9:40 ` Marco d'Itri
2007-05-18 16:08 ` Kay Sievers

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.