Skip to content

Instantly share code, notes, and snippets.

@narkisr
Created January 18, 2011 20:39
Show Gist options
  • Save narkisr/785099 to your computer and use it in GitHub Desktop.
Save narkisr/785099 to your computer and use it in GitHub Desktop.
Tue Jan 18 22:37:21 IST 2011
+ hook_exec pre-umount
+ local hooktype fn
+ hooktype=pre-umount
+ [ -d /etc/udev/uam-hooks/pre-umount ]
+ [ -f /etc/udev/uam-hooks/pre-umount/* ]
+ debug Starting uam umounter on /dev/sdc1.
+ bool 1
+ [ -n ]
+ return 0
+ outmsg Starting uam umounter on /dev/sdc1.
+ under_udev
+ [ -n /dev/sdc1 ]
+ local ident prio
+ basename /lib/udev/uam/uam-umount.sh
+ ident=uam-umount.sh[/dev/sdc1]
+ prio=info
+ logger -p info -t uam-umount.sh[/dev/sdc1] Starting uam umounter on /dev/sdc1.
+ [ -n ]
+ debug ... not mounted.
+ bool 1
+ [ -n ]
+ return 0
+ outmsg ... not mounted.
+ under_udev
+ [ -n /dev/sdc1 ]
+ local ident prio
+ basename /lib/udev/uam/uam-umount.sh
+ ident=uam-umount.sh[/dev/sdc1]
+ prio=info
+ logger -p info -t uam-umount.sh[/dev/sdc1] ... not mounted.
+ mp_cleanup
+ local maxdepth
+ bool 1
+ [ -n ]
+ return 0
+ mp_getmaxdepth MOUNTPOINT_TEMPLATES
+ local DEPTH arrname
+ DEPTH=
+ arrname=MOUNTPOINT_TEMPLATES
+ isint
+ local val
+ val=
+ : 0
+ [ 0 = ]
+ DEPTH=0
+ foreach MOUNTPOINT_TEMPLATES _mp_countslashes
+ local func arrname
+ arrname=MOUNTPOINT_TEMPLATES
+ func=_mp_countslashes
+ local addarga addargb addargc addargd
+ addarga=
+ addargb=
+ addargc=
+ addargd=
+ local isarray arrtest
+ declare -p MOUNTPOINT_TEMPLATES
/lib/udev/uam/uam-umount.sh: 1: declare: not found
+ arrtest=
+ isarray=0
+ [ 0 -eq 1 ]
+ eval getarray "${MOUNTPOINT_TEMPLATES}"
+ getarray
"${ID_FS_LABEL_ENC}" # label
"${ID_FS_LABEL_ENC:+${SERIAL}-${ID_FS_LABEL_ENC}}" # serial-label (if -n label)
"${SERIAL}-${PARTN}" # serial-partition number
"${DEVBASENAME}" # sdXY
+ echo
"${ID_FS_LABEL_ENC}" # label
"${ID_FS_LABEL_ENC:+${SERIAL}-${ID_FS_LABEL_ENC}}" # serial-label (if -n label)
"${SERIAL}-${PARTN}" # serial-partition number
"${DEVBASENAME}" # sdXY
+ awk -f /lib/udev/uam/array.awk
+ eval set -- "${ID_FS_LABEL_ENC}" # label "${ID_FS_LABEL_ENC:+${SERIAL}-${ID_FS_LABEL_ENC}}" # serial-label (if -n label) "${SERIAL}-${PARTN}" # serial-partition number "${DEVBASENAME}" # sdXY
+ set --
+ [ 1 -gt 0 ]
+ _mp_countslashes
+ local mp
+ echo
+ tr -c -d /
+ mp=
+ [ 0 -gt 0 ]
+ :
+ shift
+ [ 0 -gt 0 ]
+ echo 1
+ maxdepth=1
+ bool 1 -xdev
+ [ -n -xdev ]
+ echo -xdev
+ return 0
+ find /media -xdev -mindepth 2 -maxdepth 2 -name .created_by_uam -type f -exec /lib/udev/uam/find-helper.sh --remove-mountpoint {} +
Tue Jan 18 22:37:25 IST 2011
+ hook_exec pre-mount
+ local hooktype fn
+ hooktype=pre-mount
+ [ -d /etc/udev/uam-hooks/pre-mount ]
+ [ -f /etc/udev/uam-hooks/pre-mount/* ]
+ debug Starting uam mounter on /dev/sdc1.
+ bool 1
+ [ -n ]
+ return 0
+ outmsg Starting uam mounter on /dev/sdc1.
+ under_udev
+ [ -n /dev/sdc1 ]
+ local ident prio
+ basename /lib/udev/uam/uam-mount.sh
+ ident=uam-mount.sh[/dev/sdc1]
+ prio=info
+ logger -p info -t uam-mount.sh[/dev/sdc1] Starting uam mounter on /dev/sdc1.
+ [ vfat != swap ]
+ mount /dev/sdc1
mount: can't find /dev/sdc1 in /etc/fstab or /etc/mtab
+ foreach MOUNTPOINT_TEMPLATES try_mountpoint
+ local func arrname
+ arrname=MOUNTPOINT_TEMPLATES
+ func=try_mountpoint
+ local addarga addargb addargc addargd
+ addarga=
+ addargb=
+ addargc=
+ addargd=
+ local isarray arrtest
+ declare -p MOUNTPOINT_TEMPLATES
/lib/udev/uam/uam-mount.sh: 1: declare: not found
+ arrtest=
+ isarray=0
+ [ 0 -eq 1 ]
+ eval getarray "${MOUNTPOINT_TEMPLATES}"
+ getarray
"${ID_FS_LABEL_ENC}" # label
"${ID_FS_LABEL_ENC:+${SERIAL}-${ID_FS_LABEL_ENC}}" # serial-label (if -n label)
"${SERIAL}-${PARTN}" # serial-partition number
"${DEVBASENAME}" # sdXY
+ echo
"${ID_FS_LABEL_ENC}" # label
"${ID_FS_LABEL_ENC:+${SERIAL}-${ID_FS_LABEL_ENC}}" # serial-label (if -n label)
"${SERIAL}-${PARTN}" # serial-partition number
"${DEVBASENAME}" # sdXY
+ awk -f /lib/udev/uam/array.awk
+ eval set -- "${ID_FS_LABEL_ENC}" # label "${ID_FS_LABEL_ENC:+${SERIAL}-${ID_FS_LABEL_ENC}}" # serial-label (if -n label) "${SERIAL}-${PARTN}" # serial-partition number "${DEVBASENAME}" # sdXY
+ set --
+ [ 1 -gt 0 ]
+ try_mountpoint
+ local _mp mp mpdev
+ _mp=
+ [ -z ]
+ return 0
+ shift
+ [ 0 -gt 0 ]
+ debug ... no more mountpoints, failing.
+ bool 1
+ [ -n ]
+ return 0
+ outmsg ... no more mountpoints, failing.
+ under_udev
+ [ -n /dev/sdc1 ]
+ local ident prio
+ basename /lib/udev/uam/uam-mount.sh
+ ident=uam-mount.sh[/dev/sdc1]
+ prio=info
+ logger -p info -t uam-mount.sh[/dev/sdc1] ... no more mountpoints, failing.
+ summary here
"${ID_FS_LABEL_ENC}" # label
"${ID_FS_LABEL_ENC:+${SERIAL}-${ID_FS_LABEL_ENC}}" # serial-label (if -n label)
"${SERIAL}-${PARTN}" # serial-partition number
"${DEVBASENAME}" # sdXY
+ SUMMARY= here
"${ID_FS_LABEL_ENC}" # label
"${ID_FS_LABEL_ENC:+${SERIAL}-${ID_FS_LABEL_ENC}}" # serial-label (if -n label)
"${SERIAL}-${PARTN}" # serial-partition number
"${DEVBASENAME}" # sdXY
+ bool 1
+ [ -n ]
+ return 0
+ summary unable to find a free mountpoint.
+ SUMMARY=unable to find a free mountpoint.
+ bool 1
+ [ -n ]
+ return 0
+ hook_exec mount-failed
+ local hooktype fn
+ hooktype=mount-failed
+ [ -d /etc/udev/uam-hooks/mount-failed ]
+ [ -f /etc/udev/uam-hooks/mount-failed/90_sw_notify ]
+ basename /etc/udev/uam-hooks/mount-failed/90_sw_notify
+ debug ... mount-failed: evaluating 90_sw_notify
+ bool 1
+ [ -n ]
+ return 0
+ outmsg ... mount-failed: evaluating 90_sw_notify
+ under_udev
+ [ -n /dev/sdc1 ]
+ local ident prio
+ basename /lib/udev/uam/uam-mount.sh
+ ident=uam-mount.sh[/dev/sdc1]
+ prio=info
+ logger -p info -t uam-mount.sh[/dev/sdc1] ... mount-failed: evaluating 90_sw_notify
+ . /etc/udev/uam-hooks/mount-failed/90_sw_notify
+ bool 1
+ [ -n ]
+ return 0
+ basename /dev/sdc1
+ sw-notify-send -c device.error -i error,drive-removable-media -- sdc1 failed to mount Unable to mount /dev/sdc1: unable to find a free mountpoint.
/etc/udev/uam-hooks/mount-failed/90_sw_notify: 1: sw-notify-send: not found
+ exit 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment