Board.KolibriOS.org

Официальный форум KolibriOS
Текущее время: Вс сен 24, 2017 11:35 am

Часовой пояс: UTC+03:00




Начать новую тему  Ответить на тему  [ 21 сообщение ]  На страницу 1 2 След.
Автор Сообщение
 Заголовок сообщения: XFS
СообщениеДобавлено: Ср июл 17, 2013 11:33 pm 
Не в сети
Mentor
Аватара пользователя

Зарегистрирован: Пн окт 19, 2009 10:58 am
Сообщения: 329
Hello everyone!

I started working on XFS read/write support as a KSoC student.

Read support is in 'features are mostly implemented' state at the moment (one month is over). My current code, test kolibrios and hdd images and readme.txt (with more detailed description of how it is going) are located here. Feel free to aks me any related questions and report bugs.

Bug report includes outputs of the following commands:
  • xfs_db -c sb -c p -r DEVICE_NAME

    file/dir can't be read (run from the parent dir):
  • ls -a
  • ls -a | wc -l

    dir can't be read (run from the parent dir):
  • ls -a THAT_DIR_NAME
  • ls -a THAT_DIR_NAME | wc -l

Passing -r option to xfs_db means 'read only'. You can run it safely on any (even mounted) device.

If you can provide partition image, say, below 10GB (if you can, you know how to do it) -- that is the best option.

Please, be precise while reporting bugs and patient anyway.


Вернуться к началу
 Заголовок сообщения: Re: XFS
СообщениеДобавлено: Пн июл 29, 2013 3:04 pm 
Не в сети

Зарегистрирован: Ср май 18, 2005 7:27 pm
Сообщения: 1001
Who is your mentor? Why he don't write his opinion here? What happened with Shikhin?


Вернуться к началу
 Заголовок сообщения: Re: XFS
СообщениеДобавлено: Пн июл 29, 2013 3:08 pm 
Не в сети
Public Relations
Аватара пользователя

Зарегистрирован: Пн июн 07, 2010 12:01 pm
Сообщения: 1879
Wildwest писал(а):
Who is mentor? Why he don't write his opinion here?
Formal mentor is XVilka but he isn't really involved. CleverMouse, Mario and Serge actually answered the questions. I suggest that dunkaist commits his code in our SVN, and if the code compiles and doesn't break any other existing functionality, for me it's enough to pay him for the 1st month.
Wildwest писал(а):
What happened with Shikhin?
Shikhin's grandfather passed away, so I gave him a temporary "leave of absence". He should be back soon, I suppose.


Вернуться к началу
 Заголовок сообщения: Re: XFS
СообщениеДобавлено: Пн июл 29, 2013 3:10 pm 
Не в сети

Зарегистрирован: Пн сен 24, 2007 11:11 am
Сообщения: 2814
dunkaist писал(а):
Hello everyone!


Good job! I tested your attached files, works great. Sorry, I haven't any XFS partitions :(


Вернуться к началу
 Заголовок сообщения: Re: XFS
СообщениеДобавлено: Пн июл 29, 2013 9:20 pm 
Не в сети
Mentor
Аватара пользователя

Зарегистрирован: Пн окт 19, 2009 10:58 am
Сообщения: 329
yogev_ezra,
I think it's a good idea to commit the code to svn, at least read-only part. What is called 'writing' at the moment will damage fs for sure). But I'd like to fix some reading bugs first which are still here because I'm currently more concentrated on understanding writing logic and basic inode allocating process. It will definitely happen in one-two weeks and it seems to me logically to be paid when the code is committed.

SoUrcerer писал(а):
Good job! I tested your attached files, works great. Sorry, I haven't any XFS partitions
Thanks! To be honest, XFS image is quite outdated. I mean the current code handles more ondisk file/dir formats than that 02.xfs has. However, as I wrote above, there is still something to do before read support is complete. I will probably provide more sophisticated 0?.xfs though it is hard to fit a btree dir with over 100,000 entries into < 10M file.


Вернуться к началу
 Заголовок сообщения: Re: XFS
СообщениеДобавлено: Вт авг 06, 2013 8:26 pm 
Не в сети

Зарегистрирован: Ср май 18, 2005 7:27 pm
Сообщения: 1001
Shikhin doesn't visit forum for 5 days already...
memberlist.php?mode=viewprofile&u=5817
I think it is better to cancel payment to him and hire 1 or 2 students for another (easier) task(s) and shorter term.


Вернуться к началу
 Заголовок сообщения: Re: XFS
СообщениеДобавлено: Вт авг 06, 2013 8:47 pm 
Не в сети
Public Relations
Аватара пользователя

Зарегистрирован: Пн июн 07, 2010 12:01 pm
Сообщения: 1879
Wildwest писал(а):
Shikhin doesn't visit forum for 5 days already...
memberlist.php?mode=viewprofile&u=5817
I think it is better to cancel payment to him and hire 1 or 2 students for another (easier) task(s) and shorter term.
I have sent him a private message now, and offered to step off and allow us to take another student for another task. If he needs a few more days to mourn his grandfather's death, I completely understand that and have no problem to give him those days, but he should communicate it openly to all forum members, and not just disappear.


Вернуться к началу
 Заголовок сообщения:
СообщениеДобавлено: Сб авг 31, 2013 12:53 pm 
Не в сети
Public Relations
Аватара пользователя

Зарегистрирован: Пн июн 07, 2010 12:01 pm
Сообщения: 1879
Any idea on when do you plan to commit read support to SVN? Your first salary is long overdue because it's pending that commit.


Вернуться к началу
 Заголовок сообщения: Re: XFS
СообщениеДобавлено: Сб авг 31, 2013 4:50 pm 
Не в сети
Mentor
Аватара пользователя

Зарегистрирован: Пн окт 19, 2009 10:58 am
Сообщения: 329
yogev_ezra писал(а):
Any idea on when do you plan to commit read support to SVN?
I will commit/update_on_ftp all the stable/unstable code I have until the last deadline, since final report requires full code.

yogev_ezra писал(а):
Your first salary is long overdue because it's pending that commit.
It seems ok to me because you know that feature is implemented (ftp) and I know that I'll get corresponding salary (same reason).


Currently I'm trying to get some working configurations of write support. I wouldn't like my final report has words "many functions are written, but I steel need to write several ones before you can try/test anything".

Thank you for your patience!


Вернуться к началу
 Заголовок сообщения: Re: XFS
СообщениеДобавлено: Ср сен 18, 2013 1:36 am 
Не в сети
Mentor
Аватара пользователя

Зарегистрирован: Пн окт 19, 2009 10:58 am
Сообщения: 329
Hello, everyone!

Here is my report for read only part of XFS support.

It should work if:
  • you didn't pass custom options to mkfs.xfs (you know if you did);
  • you don't use new/exotic features like CRC protection of meta-data.

My further aim for reading is to increase speed and stability (e.g. on fragmented files) and provide support for more custom flags/features.
Current code is committed to repository. Test images are uploaded to ftp.

Below is a screenshot of my code in action. Text file, wav track (seeking does work!), dancing girl picture (she moves too fast, so gif animation looks like slideshow in qemu) and huge directory of 33333 entries (try browse it).

Спойлер: Показать
Изображение

Feel free to test and report bugs,
thank you for your patience!


Вернуться к началу
 Заголовок сообщения: Re: XFS
СообщениеДобавлено: Ср сен 18, 2013 7:25 am 
Не в сети
Kernel Developer

Зарегистрирован: Вс фев 10, 2013 12:37 pm
Сообщения: 2329
dunkaist
Good job.

_________________
Всем чмоки в этом проекте! Засуньте эти 11 лет себе в жопу!


Вернуться к началу
 Заголовок сообщения: Re: XFS
СообщениеДобавлено: Чт сен 19, 2013 2:54 am 
Не в сети
Mentor
Аватара пользователя

Зарегистрирован: Пн окт 19, 2009 10:58 am
Сообщения: 329
And here is my report for writing part of XFS support.

First of all, do not test kolibri_rw.img on real hardware! The code is on ftp right now, so you can still use nightbuilds safely.

Unfortunately, writing is much harder to implement than reading. But though I didn't promise stable write support I don't consider its current state satisfactory. Uploaded test image (09.xfs.xz) contains several nested directories with files to delete them.

The reasons (besides task complexity) are my laziness in August and studying at the university in September.
I'd ask to move my final deadline to 17 October as to provide more adequate code and get positive reviews.

Below is an image with KFM: both panels show the same directory before and after deletion of files/dirs (kolibri_rw.img, 09.xfs).
Спойлер: Показать
Изображение


Вернуться к началу
 Заголовок сообщения: Re: XFS
СообщениеДобавлено: Чт сен 19, 2013 6:04 pm 
Не в сети

Зарегистрирован: Вт апр 12, 2011 11:19 pm
Сообщения: 1073
The image where only read - everything works fine. And here in the form of test data record does not even open section. As asked by a General impression. If you will need the logs to you. Tested it in VirtualBox.

_________________
я лишь учусь


Вернуться к началу
 Заголовок сообщения: Re: XFS
СообщениеДобавлено: Чт сен 19, 2013 6:37 pm 
Не в сети
Mentor
Аватара пользователя

Зарегистрирован: Пн окт 19, 2009 10:58 am
Сообщения: 329
punk_joker писал(а):
The image where only read - everything works fine.
Glad to read, thank you for testing.

punk_joker писал(а):
And here in the form of test data record does not even open section. As asked by a General impression. If you will need the logs to you. Tested it in VirtualBox.
I use qemu 1.2.2 since there is very similar problem with current qemu 1.5.2.

Please, try attach other hdd images with different file systems on them and specify VirtualBox version. I didn't really go into details with this problem, it doesn't seem to me to be XFS related.


Вернуться к началу
 Заголовок сообщения: Re: XFS
СообщениеДобавлено: Пт сен 20, 2013 10:37 pm 
Не в сети

Зарегистрирован: Вт апр 12, 2011 11:19 pm
Сообщения: 1073
Tested on a real system. Reading works in both cases. The record is not working at all.

_________________
я лишь учусь


Вернуться к началу
Показать сообщения за:  Поле сортировки  
Начать новую тему  Ответить на тему  [ 21 сообщение ]  На страницу 1 2 След.

Часовой пояс: UTC+03:00


Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и 1 гость


Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете добавлять вложения

Найти:
Перейти:  
Создано на основе phpBB® Forum Software © phpBB Limited
Русская поддержка phpBB