URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID1
Нить номер: 77174
[ Назад ]

Исходное сообщение
"freeBSD+ntfs+samba3 (PDC)"

Отправлено m1chaeell , 05-Ноя-07 12:04 
При попытке записать файл c помощью "Total Commander 7.02a" в папку на ntfs-разделе, расшареную с помощью "Samba3", "тотал" пишет, что нет свободного места, хотя показывает на панелях диска реальное свободное место. В то же время, винда пишет туда без вопросов.

Смонтировал раздел ntfs командой
$ ntfs-3g /dev/ad10s1 /mnt/ad10s1 -o locale=ru_RU.UTF-8
Расшарил его самбой (PDC)

smb.conf
...

[share]
    comment = share
    path = /mnt/ad10s1/share
    valid users = "@Domain Users", "@Domain Admins"
    admin users = "@Domain Admins"
    read list = "@Domain Users", "@Domain Admins"
    write list = "@Domain Users", "@Domain Admins"
    read only = No
    create mask = 0666
    directory mask = 0777

...
Заранее благодарен за любую помощь :)


Содержание

Сообщения в этом обсуждении
"freeBSD+ntfs+samba3 (PDC)"
Отправлено Rza , 05-Ноя-07 15:33 
>[оверквотинг удален]
> valid users = "@Domain Users", "@Domain Admins"
> admin users = "@Domain Admins"
> read list = "@Domain Users", "@Domain Admins"
> write list = "@Domain Users", "@Domain Admins"
> read only = No
> create mask = 0666
> directory mask = 0777
>
>...
>Заранее благодарен за любую помощь :)

Какое ядро - обычно Линукс ядра не умеют писать в НТФС


"freeBSD+ntfs+samba3 (PDC)"
Отправлено m1chaeell , 06-Ноя-07 09:51 
>[оверквотинг удален]
>> read list = "@Domain Users", "@Domain Admins"
>> write list = "@Domain Users", "@Domain Admins"
>> read only = No
>> create mask = 0666
>> directory mask = 0777
>>
>>...
>>Заранее благодарен за любую помощь :)
>
>Какое ядро - обычно Линукс ядра не умеют писать в НТФС

Я использую драйвер ntfs-3g.
Вот решение вопроса:
в smb.conf нужно добавить строчку strict allocate = Yes

Краткая справка:

strict allocate (S)

    This is a boolean that controls the handling of disk space allocation in the server. When this is set to yes the server will change from UNIX behaviour of not committing real disk storage blocks when a file is extended to the Windows behaviour of actually forcing the disk system to allocate real storage blocks when a file is created or extended to be a given size. In UNIX terminology this means that Samba will stop creating sparse files. This can be slow on some systems.

    When strict allocate is no the server does sparse disk block allocation when a file is extended.

    Setting this to yes can help Samba return out of quota messages on systems that are restricting the disk quota of users.

    Default: strict allocate = no