[haiku-bugs] [Haiku] #11750: userland/cdda does not work correctly if installed in home (instead of system)

  • From: "ttcoder" <trac@xxxxxxxxxxxx>
  • Date: Tue, 13 Jan 2015 10:24:22 -0000

#11750: userland/cdda does not work correctly if installed in home (instead of
system)
-------------------------------------+------------------------------
 Reporter:  ttcoder                  |        Owner:  bonefish
     Type:  bug                      |       Status:  new
 Priority:  normal                   |    Milestone:  R1/beta1
Component:  File Systems/UserlandFS  |      Version:  R1/Development
 Keywords:                           |   Blocked By:
 Blocking:                           |  Has a Patch:  0
 Platform:  All                      |
-------------------------------------+------------------------------
 While testing further I ended up with userland-fs installed in
 home/config/packages (instead of system/packages), and things don't work
 as expected. Symptoms:

 - a `/dev/disk/atapi/3/master/0` device shows up as soon as the audio CD
 is inserted (not waiting for a mount command to be issued), and even with
 auto-mounting disabled in Tracker preferences; one can see it pop up in
 real time by leaving DriveSetup open when inserting the CD.
 - when the actual mount command is issued in Terminal, it returns "mount:
 No such file or directory":

 {{{
 Executing userlandfs line <mkdir -p /audiocd ; mount -t userlandfs -p cdda
 /dev/disk/atapi/3/master/raw /audiocd>
 mount: No such file or directory
 }}}

 Took me a while to understand the problem was due to the package being in
 home, because that status_t (no such file) is the same one returned when
 you mistype the filesystem name and invoke e.g. -t userlandfs -p cddda.

 Suggestions..
 - improve error handling, to distinguish those 2 error cases
 - look into why userlandfs wants to be installed in system
 - or if it's the case that some packages simply cannot live in home at
 all, extend the hpkg properties/syntax of dependancies to manage this ;
 use-case: I have declared a `depends: userland-fs` dependancy in my CD-
 ripping app, which means if that application package is installed in
 system then userlandfs is correctly installed in system, but if the
 application is installed in home then userlandfs is downloaded and
 installed in home too.

--
Ticket URL: <https://dev.haiku-os.org/ticket/11750>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: