Re: [PATCH 1/3 v4] btrfs-progs: use kernel for mounted disk for show

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

 





The reason is simple, for my
convenience I've added the user to the 'disk' group so I can access the
block devices without root. This patch stops to read the block devs
directly and uses the ioctl BTRFS_IOC_FS_INFO which gives me a silent
EPERM.
> If I run show with sudo, then all filesystems show up as
> expected.

 Ah. good catch. but what do you suggest. ?
 as of now user on disk-group is able to do things like,
 check --repair. but won't  be able to list the subvol /
 manage the snapshots, and is able to run btrfs fi show -d
 but won't be able to run btrfs fi show / -m. what do we
 do in this case ?
 OR when /sys interface is ready that should help to manage
 based on the user-groups.?

Thanks Anand
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




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

  Powered by Linux