The Samba-Bugzilla – Attachment 9942 Details for
Bug 10607
dfree command is not executed as root in samba 4
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
the script that runs ok on Samba 3 and fails on Samba 4
zfs_free.sh (text/plain), 574 bytes, created by
Peter de Kraker
on 2014-05-14 23:19:48 UTC
(
hide
)
Description:
the script that runs ok on Samba 3 and fails on Samba 4
Filename:
MIME Type:
Creator:
Peter de Kraker
Created:
2014-05-14 23:19:48 UTC
Size:
574 bytes
patch
obsolete
>#!/bin/bash > > > CUR_PATH=`pwd` > ZFS_CHECK_OUTPUT=$(zfs get type $CUR_PATH 2>&1 > /dev/null) > /dev/null > if [[ $ZFS_CHECK_OUTPUT == *not\ a\ ZFS* ]] > then > IS_ZFS=false > else > IS_ZFS=true > fi > if [[ $IS_ZFS = false ]] > then > df $CUR_PATH | tail -1 | awk '{print $2" "$4}' > else > USED=$((`zfs get -o value -Hp used $CUR_PATH` / 1024)) > /dev/null > AVAIL=$((`zfs get -o value -Hp available $CUR_PATH` / 1024)) > /dev/null > > TOTAL=$(($USED+$AVAIL)) > /dev/null > > echo $TOTAL $AVAIL ># echo "0 0" > fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 10607
: 9942