Re: [PATCH 1/2 v2] common/rc: _fs_sysfs_dname fetch fsid using btrfs tool

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





@@ -4728,7 +4728,9 @@ _fs_sysfs_dname()

         case "$FSTYP" in
         btrfs)
-               findmnt -n -o UUID ${dev} ;;
+               fsid=$($BTRFS_UTIL_PROG filesystem show ${dev} | grep uuid: | \
+                                                       awk '{print $NF}')

Please make the variable local.

Added in v3. Thx, Anand





[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux