Re: umount and findmnt commands not working with btrfs labels ...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 Hi George,

On Mon, May 06, 2013 at 03:28:53PM -0700, George Mitchell wrote:
> [root@localhost ghmitch]# umount LABEL=MAGEIA3BTR-BOOT
> 
> umount: LABEL=MAGEIA3BTR-BOOT: not found

 umount --version ?

 It works for me (tested with util-linux 2.22 and 2.23):

  # mkfs.btrfs -L MAGEIA3BTR /dev/sdb1
  # mkfs.btrfs -L MAGEIA3BTR-FOO /dev/sdb2

  # mount LABEL=MAGEIA3BTR /mnt/test
  # mount LABEL=MAGEIA3BTR-FOO /mnt/test

  # findmnt LABEL=MAGEIA3BTR
  TARGET    SOURCE    FSTYPE OPTIONS
  /mnt/test /dev/sdb1 btrfs  rw,relatime,ssd,space_cache

  # findmnt LABEL=MAGEIA3BTR-FOO
  TARGET     SOURCE    FSTYPE OPTIONS
  /mnt/test2 /dev/sdb2 btrfs  rw,relatime,ssd,space_cache

  # umount LABEL=MAGEIA3BTR
  # umount LABEL=MAGEIA3BTR-FOO

  # lsblk --fs /dev/sdb
  NAME   FSTYPE LABEL          UUID                                 MOUNTPOINT
  sdb                                                               
  ├─sdb1 btrfs  MAGEIA3BTR     6dcc3293-ce27-474f-ab31-dd7a8e5bb2da 
  └─sdb2 btrfs  MAGEIA3BTR-FOO f3bb2d57-8b46-40a0-ae76-50d78268d6d9 


It would be nice to have a simple reproducible scenario rather than a
lot of mount -l outputs and some egrep tricks :-)

You can also try 

  LIBMOUNT_DEBUG=0xffff umount LABEL=MAGEIA3BTR-BOOT

to see more details.

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux