DragonFly kernel List (threaded) for 2008-01
DragonFly BSD
DragonFly kernel List (threaded) for 2008-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: HAMMER update 23-jan-08


From: YONETANI Tomokazu <qhwt+dfly@xxxxxxxxxx>
Date: Fri, 25 Jan 2008 14:31:12 +0900

Hi.  It seems that ownership and some file modes are not strictly
honored.

# truncate -s16G HAMMER{0,1}
# vnconfig -c vn0 HAMMER0
# vnconfig -c vn1 HAMMER1
# newfs_hammer -L TEST /dev/vn{0,1}
Volume 0 REGFILE /dev/vn0        size   0.00
Volume 1 REGFILE /dev/vn1        size   0.00
---------------------------------------------
2 volumes total size   0.00
cluster-size:          4.00MB
max-volume-size:     128.00GB
max-filesystem-size: 4096.00TB
boot-area-size:        0.00
memory-log-size:       0.00

newfs_hammer: volume 0 /dev/vn0 is too small to hold the volume header
(Eh?)
# newfs_hammer -L TEST HAMMER{0,1}
(Hmm... it's gotta be something in vn(4)...)
# mount_hammer /dev/vn{0,1} /mnt
# chmod 1777 /mnt

(files or directories created by non-root users are owned by root)
# su - yonetani -c 'mkdir /mnt/foo && touch /mnt/foo/bar'
touch: /mnt/foo/bar: Permission denied
# ls -al /mnt
total 2
drwxrwxrwt   1 root  wheel    0 Jan 25 12:31 .
drwxr-xr-x  15 root  wheel  512 Jan 22 12:54 ..
drwxr-xr-x   1 root  wheel    0 Jan 25 14:13 foo

(sticky bit is not honored)
# touch /mnt/bar
# su - yonetani -c 'rm /mnt/bar' && echo YES
YES
# ls -al /mnt
total 2
drwxrwxrwt   1 root  wheel    0 Jan 25 12:31 .
drwxr-xr-x  15 root  wheel  512 Jan 22 12:54 ..

Cheers,
YONETANI Tomokazu



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